[grisbi-cvs] grisbi/src utils_str.c,1.67,1.68

Pierre Biava pbiava at users.sourceforge.net
Wed Sep 16 21:46:03 CEST 2009


Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv2662

Modified Files:
	utils_str.c 
Log Message:
back on the previous correction of crash if ptr_debut == NULL

Index: utils_str.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/utils_str.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- utils_str.c	15 Sep 2009 05:44:56 -0000	1.67
+++ utils_str.c	16 Sep 2009 19:46:01 -0000	1.68
@@ -746,7 +746,7 @@
 
     ptr_debut = g_strstr_len ( str, -1, old_str);
     if ( ptr_debut == NULL )
-        g_strdup ( str );
+        return g_strdup ( str );
 
     long_old = g_utf8_strlen ( old_str, -1 );
     chaine = g_strndup ( str, (ptr_debut - str) );



More information about the cvs mailing list