SF.net SVN: geany: [1387] trunk/src/utils.c

ntrel at users.sourceforge.net ntrel at xxxxx
Mon Mar 12 16:30:15 UTC 2007


Revision: 1387
          http://svn.sourceforge.net/geany/?rev=1387&view=rev
Author:   ntrel
Date:     2007-03-12 09:30:15 -0700 (Mon, 12 Mar 2007)

Log Message:
-----------
Fix segfault (oops).

Modified Paths:
--------------
    trunk/src/utils.c

Modified: trunk/src/utils.c
===================================================================
--- trunk/src/utils.c	2007-03-12 16:24:52 UTC (rev 1386)
+++ trunk/src/utils.c	2007-03-12 16:30:15 UTC (rev 1387)
@@ -385,7 +385,7 @@
 	gboolean ret;
 
 	// check if the cached line and file index have changed since last time:
-	if (cur_idx != old_idx)
+	if (cur_idx < 0 || cur_idx != old_idx)
 		ret = TRUE;
 	else
 	if (cur_line == old_line)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list