[gthumb/ext] wrong value passed to a function
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb/ext] wrong value passed to a function
- Date: Tue, 18 Aug 2009 19:11:21 +0000 (UTC)
commit d95135a50e95f037daf5b7398ae2b67ec7e96c46
Author: Paolo Bacchilega <paobac src gnome org>
Date: Tue Aug 18 18:19:19 2009 +0200
wrong value passed to a function
gthumb/gth-file-data.c | 2 +-
gthumb/gth-file-list.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-file-data.c b/gthumb/gth-file-data.c
index 497731b..1731c15 100644
--- a/gthumb/gth-file-data.c
+++ b/gthumb/gth-file-data.c
@@ -444,7 +444,7 @@ char *
gth_file_data_get_attribute_as_string (GthFileData *file_data,
const char *id)
{
- char *value;
+ char *value = NULL;
GObject *obj;
switch (g_file_info_get_attribute_type (file_data->info, id)) {
diff --git a/gthumb/gth-file-list.c b/gthumb/gth-file-list.c
index 46ccc70..2db2c24 100644
--- a/gthumb/gth-file-list.c
+++ b/gthumb/gth-file-list.c
@@ -1138,7 +1138,7 @@ gth_file_list_set_caption (GthFileList *file_list,
metadata = _gth_file_list_get_metadata (file_list, file_data);
gth_file_store_queue_set (file_store,
&iter,
- GTH_FILE_STORE_METADATA_COLUMN, metadata,
+ GTH_FILE_STORE_METADATA_COLUMN, metadata->str,
-1);
g_string_free (metadata, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]