projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5b0a85
)
fixed an use of uninitialized value
author
Vladimir Nadvornik
<nadvornik@suse.cz>
Tue, 30 Jun 2009 20:15:33 +0000
(20:15 +0000)
committer
Vladimir Nadvornik
<nadvornik@suse.cz>
Tue, 30 Jun 2009 20:15:33 +0000
(20:15 +0000)
src/metadata.c
patch
|
blob
|
history
diff --git
a/src/metadata.c
b/src/metadata.c
index
c0a8082
..
eb8c861
100644
(file)
--- a/
src/metadata.c
+++ b/
src/metadata.c
@@
-334,7
+334,7
@@
static gboolean metadata_legacy_write(FileData *fd)
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);