[grisbi-cvs] mk_include/src mk_include.c,1.18,1.19

Cedric Auger cedric_grisbi at users.sourceforge.net
Wed Sep 2 10:46:27 CEST 2009


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

Modified Files:
	mk_include.c 
Log Message:
fix crash in some cases

Index: mk_include.c
===================================================================
RCS file: /cvsroot/grisbi/mk_include/src/mk_include.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- mk_include.c	7 Mar 2009 06:15:21 -0000	1.18
+++ mk_include.c	2 Sep 2009 08:46:25 -0000	1.19
@@ -1072,7 +1072,9 @@
     /* on commence par rechercher s'il n'y a pas la définition complète de la variable dans la ligne */
     /*     si c'est le cas, on renvoie -1 */
 
-    if ( strstr ( ligne_source,
+    if ( !variable -> def_variable
+	 ||
+	 strstr ( ligne_source,
 		  variable -> def_variable ))
 	return -1;
 
@@ -2331,8 +2333,9 @@
 		   6 ))
 	char_tmp = char_tmp + 6;
 
+    /* the tab at the begining makes vim to hide all the statics declarations */
     if ( statique )
-	char_tmp = g_strconcat ( "static ",
+	char_tmp = g_strconcat ( "	static ",
 				 char_tmp,
 				 NULL );
 



More information about the cvs mailing list