summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-07-19 20:24:25 +0200
committerAlexander Larsson <alexl@redhat.com>2010-07-19 20:24:25 +0200
commit74b470eeded366115b0c660288eccdf2f5291336 (patch)
treee3a57150a7216eae0e6e0c7d4dab0e36a9c5a678
parente646529d2e72ccd5b25f88adcf2c37f15c601408 (diff)
downloadspice-74b470eeded366115b0c660288eccdf2f5291336.tar.gz
spice-74b470eeded366115b0c660288eccdf2f5291336.tar.xz
spice-74b470eeded366115b0c660288eccdf2f5291336.zip
Fix uninitialized variable warnings
-rw-r--r--python_modules/demarshal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python_modules/demarshal.py b/python_modules/demarshal.py
index f259ead4..a4345d4d 100644
--- a/python_modules/demarshal.py
+++ b/python_modules/demarshal.py
@@ -479,7 +479,7 @@ def write_validate_item(writer, container, item, scope, parent_scope, start,
if item.member and item.member.has_attr("to_ptr"):
saved_size = "%s__saved_size" % item.member.name
- writer.add_function_variable("uint32_t", saved_size)
+ writer.add_function_variable("uint32_t", saved_size + " = 0")
writer.assign(saved_size, item.nw_size())
def write_validate_member(writer, container, member, parent_scope, start,