From d7023a5770e78903789f19156cf92d81724666d6 Mon Sep 17 00:00:00 2001 From: Peter Giacomo Lombardo Date: Wed, 21 Aug 2019 10:29:19 +0200 Subject: [PATCH] Add explicit initialization of hip variable --- instana/util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/instana/util.py b/instana/util.py index 5868d5e9..13298fbd 100644 --- a/instana/util.py +++ b/instana/util.py @@ -209,6 +209,7 @@ def get_default_gateway(): :return: String - the ip address of the default gateway or None if not found/possible/non-existant """ try: + hip = None # The first line is the header line # We look for the line where the Destination is 00000000 - that is the default route # The Gateway IP is encoded backwards in hex.