Revision: 1786
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1786&view=rev
Author:   nadvornik
Date:     2009-06-30 20:15:33 +0000 (Tue, 30 Jun 2009)

Log Message:
-----------
fixed an use of uninitialized value

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

Modified: trunk/src/metadata.c
===================================================================
--- trunk/src/metadata.c        2009-06-30 20:12:28 UTC (rev 1785)
+++ trunk/src/metadata.c        2009-06-30 20:15:33 UTC (rev 1786)
@@ -334,7 +334,7 @@
 
        have_keywords = g_hash_table_lookup_extended(fd->modified_xmp, 
KEYWORD_KEY, NULL, &keywords);
        have_comment = g_hash_table_lookup_extended(fd->modified_xmp, 
COMMENT_KEY, NULL, &comment_l);
-       comment = comment_l ? ((GList *)comment_l)->data : NULL;
+       comment = (have_comment && comment_l) ? ((GList *)comment_l)->data : 
NULL;
        
        if (!have_keywords || !have_comment) metadata_file_read(metadata_pathl, 
&orig_keywords, &orig_comment);
        


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

------------------------------------------------------------------------------
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to