Skip to content

Commit

Permalink
fixed an use of uninitialized value
Browse files Browse the repository at this point in the history
  • Loading branch information
nadvornik committed Jun 30, 2009
1 parent b5b0a85 commit 0bf2730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0bf2730

Please sign in to comment.