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
commit12bc82da5cc172df06cf1f5fbddd492e93e18fe6 (patch)
tree3d402cc95123d1202e0cd62dfee9e3b762b83e2f /python_modules
parent4702feb5b1958eeef9b4414a2fb7cac259394a52 (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,