summaryrefslogtreecommitdiff
path: root/python_modules
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-07-19 20:24:25 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:49 +0100
commit3f2739ebc9dad12fafa2a8b8e7369cae99bd361f (patch)
tree14ee1a85afcbf09ecae2fdad073555764adbb1ae /python_modules
parent7897a338db23c29746dbd6062cbc615a3f15dbb4 (diff)
Fix uninitialized variable warnings
Diffstat (limited to 'python_modules')
-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 f259ead..a4345d4 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,