[Spice-commits] python_modules/demarshal.py
Alexander Larsson
alexl at kemper.freedesktop.org
Mon Jul 19 11:24:45 PDT 2010
python_modules/demarshal.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 74b470eeded366115b0c660288eccdf2f5291336
Author: Alexander Larsson <alexl at redhat.com>
Date: Mon Jul 19 20:24:25 2010 +0200
Fix uninitialized variable warnings
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,
More information about the Spice-commits
mailing list