Initialize NetNet::port_index_
The port_index_ member of the NetNet is not initialized which can lead to undefined behavior. Make sure to initialize to -1 to indicate that the net is not associated with any port. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
This commit is contained in:
parent
9811c375a8
commit
a68fe8ea0a