Skip to content

Commit 0b9105f

Browse files
authored
Add explicit initialization of hip variable (#185)
1 parent 419d36a commit 0b9105f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

instana/util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ def get_default_gateway():
209209
:return: String - the ip address of the default gateway or None if not found/possible/non-existant
210210
"""
211211
try:
212+
hip = None
212213
# The first line is the header line
213214
# We look for the line where the Destination is 00000000 - that is the default route
214215
# The Gateway IP is encoded backwards in hex.

0 commit comments

Comments
 (0)