Browse Source

micro fixes in the generator

Stasik0 11 years ago
parent
commit
d469d6eeaa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tool/generate_builtin.py

+ 1 - 1
tool/generate_builtin.py

@@ -160,7 +160,7 @@ def createStructured(element):
 
     print("\n\t;\n};\n", end='\n', file=fc)
 
-    print("Int32 "+name+"_encode("+name+" const * src, Int32* pos, char* dst) {\n\tInt32 retval=0;", end='\n', file=fc)
+    print("Int32 "+name+"_encode("+name+" const * src, Int32* pos, char* dst) {\n\tInt32 retval = UA_SUCCESS;", end='\n', file=fc)
     # code _encode
     for n,t in valuemap.iteritems():
         if t in elementary_size: