[gimp/metadata-browser] app: initialize var before usage
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app: initialize var before usage
- Date: Wed, 12 Sep 2012 22:49:06 +0000 (UTC)
commit 2d636a0a3f36249b9da326e7c9a27e0ca2fdc3f8
Author: Massimo Valentini <mvalentini src gnome org>
Date: Fri Feb 10 12:24:32 2012 +0100
app: initialize var before usage
to silence valgrind
==12105== Conditional jump or move depends on uninitialised value(s)
==12105== at 0x6B069C: gimp_data_set_folder_tags (gimp/app/core/gimpdata.c:885)
==12105== by 0x6B155E: gimp_data_factory_load_data (gimp/app/core/gimpdatafactory.c:922)
==12105== by 0x64F34D0: gimp_datafiles_read_directories (gimp/libgimpbase/gimpdatafiles.c:155)
==12105== by 0x6B1293: gimp_data_factory_data_load (gimp/app/core/gimpdatafactory.c:354)
==12105== by 0x6B1E1C: gimp_data_factory_data_init (gimp/app/core/gimpdatafactory.c:239)
==12105== by 0x6871D2: gimp_restore (gimp/app/core/gimp.c:952)
==12105== by 0x47EABA: app_run (gimp/app/app.c:217)
==12105== by 0x47E64D: main (gimp/app/main.c:440)
==12105== Uninitialised value was created by a stack allocation
==12105== at 0x6B1190: gimp_data_factory_data_load (gimp/app/core/gimpdatafactory.c:319)
app/core/gimpdatafactory.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpdatafactory.c b/app/core/gimpdatafactory.c
index 4f8e1e5..00e6419 100644
--- a/app/core/gimpdatafactory.c
+++ b/app/core/gimpdatafactory.c
@@ -329,7 +329,7 @@ gimp_data_factory_data_load (GimpDataFactory *factory,
{
GList *writable_list = NULL;
gchar *tmp;
- GimpDataLoadContext load_context;
+ GimpDataLoadContext load_context = { 0, };
load_context.factory = factory;
load_context.context = context;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]