certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] certi/scripts GenMsgCXX.py


From: certi-cvs
Subject: [certi-cvs] certi/scripts GenMsgCXX.py
Date: Sun, 14 Mar 2010 15:29:13 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     Petr Gotthard <gotthardp>       10/03/14 15:29:12

Modified files:
        scripts        : GenMsgCXX.py 

Log message:
        Bugfix: ‘msg’ may be used uninitialized in this function

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/scripts/GenMsgCXX.py?cvsroot=certi&r1=1.7&r2=1.8

Patches:
Index: GenMsgCXX.py
===================================================================
RCS file: /sources/certi/certi/scripts/GenMsgCXX.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- GenMsgCXX.py        11 Mar 2010 10:38:01 -0000      1.7
+++ GenMsgCXX.py        14 Mar 2010 15:29:12 -0000      1.8
@@ -17,7 +17,7 @@
 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 ## USA
 ##
-## $Id: GenMsgCXX.py,v 1.7 2010/03/11 10:38:01 erk Exp $
+## $Id: GenMsgCXX.py,v 1.8 2010/03/14 15:29:12 gotthardp Exp $
 ## ----------------------------------------------------------------------------
 
 """
@@ -553,7 +553,7 @@
         creator = 
(self.AST.factory.creator[0],self.AST.factory.name)+self.AST.factory.creator[1:]
            
         stream.write(self.getIndent()+"%s* %s::%s(%s type) throw 
(RTIinternalError) {\n"% creator)
         self.indent()
-        stream.write(self.getIndent()+"%s* msg;\n\n" % creator[0])
+        stream.write(self.getIndent()+"%s* msg = NULL;\n\n" % creator[0])
         stream.write(self.getIndent() + "switch (type) {\n")
         self.indent()
         for e in self.AST.eMessageType.values:




reply via email to

[Prev in Thread] Current Thread [Next in Thread]