Browse Source

[2676] avoid the situation where an uninitialized variable is used

JINMEI Tatuya 12 years ago
parent
commit
0735f72f09
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/bin/stats/stats.py.in

+ 1 - 0
src/bin/stats/stats.py.in

@@ -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