r17276 - gnucash/branches/2.2/lib/libqof/qof - [r17248] Bug #539829: Make sure msg gets assigned before it can get dereferenced.

Christian Stimming cstim at cvs.gnucash.org
Mon Jul 7 16:56:10 EDT 2008


Author: cstim
Date: 2008-07-07 16:56:10 -0400 (Mon, 07 Jul 2008)
New Revision: 17276
Trac: http://svn.gnucash.org/trac/changeset/17276

Modified:
   gnucash/branches/2.2/lib/libqof/qof/qofsession.c
Log:
[r17248] Bug #539829: Make sure msg gets assigned before it can get dereferenced.

Originally by cedayiv.


Modified: gnucash/branches/2.2/lib/libqof/qof/qofsession.c
===================================================================
--- gnucash/branches/2.2/lib/libqof/qof/qofsession.c	2008-07-07 20:56:01 UTC (rev 17275)
+++ gnucash/branches/2.2/lib/libqof/qof/qofsession.c	2008-07-07 20:56:10 UTC (rev 17276)
@@ -1211,7 +1211,8 @@
 	QofBook *book, *abook;
 	int err;
 	gint num;
-	char *msg, *book_id;
+	char *msg = NULL;
+	char *book_id;
 
 	if (!session) return;
 	if (!g_atomic_int_dec_and_test(&session->lock))



More information about the gnucash-changes mailing list