Revision: 1185
http://geeqie.svn.sourceforge.net/geeqie/?rev=1185&view=rev
Author: zas_
Date: 2008-11-04 17:26:46 +0000 (Tue, 04 Nov 2008)
Log Message:
-----------
Fix a segfault occuring when searching for comments in a directory where at
least one photo doesn't have a comment. The fix modifies comment_read()
function to return FALSE when a comment doesn't exist. Patch by Omari Stephens.
Modified Paths:
--------------
trunk/src/bar_info.c
Modified: trunk/src/bar_info.c
===================================================================
--- trunk/src/bar_info.c 2008-11-04 17:11:53 UTC (rev 1184)
+++ trunk/src/bar_info.c 2008-11-04 17:26:46 UTC (rev 1185)
@@ -462,6 +462,10 @@
}
if (res1 && (!comment || *comment != comment1)) g_free(comment1);
if (res2 && (!comment || *comment != comment2)) g_free(comment2);
+
+ // return FALSE on failure
+ if (comment && !*comment)
+ return FALSE;
return TRUE;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn