]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2676] avoid the situation where an uninitialized variable is used
authorJINMEI Tatuya <jinmei@isc.org>
Wed, 20 Feb 2013 17:09:16 +0000 (09:09 -0800)
committerJINMEI Tatuya <jinmei@isc.org>
Wed, 20 Feb 2013 17:09:16 +0000 (09:09 -0800)
src/bin/stats/stats.py.in

index 2711f2d38b5a2cf574b0304f12fc96e622e796ef..9ace6c83e1097a7c0dab16ddae9be42ebc2fc570 100755 (executable)
@@ -261,6 +261,7 @@ class Stats:
             # TODO: Is it OK to just pass? As part of refactoring, preserving
             # the original behaviour.
             value = None
+        modules = []
         if type(value) is list:
             # NOTE: For example, the "show_processes" command
             # of Init is assumed to return the response in this