net: initialize structs when declaring them/do not clobber caller variables

Just two minor style fixes...