[gthumb] initialize some constanst to remove some compiler warnings
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] initialize some constanst to remove some compiler warnings
- Date: Tue, 25 Oct 2011 14:53:39 +0000 (UTC)
commit 2b83825462194dd1b62e76021b12176a3e76825a
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Oct 16 12:08:58 2011 +0200
initialize some constanst to remove some compiler warnings
extensions/catalogs/gth-organize-task.c | 2 +-
extensions/contact_sheet/dlg-contact-sheet.c | 5 ++++-
extensions/contact_sheet/dlg-image-wall.c | 5 ++++-
extensions/gstreamer_tools/gth-media-viewer-page.c | 2 +-
4 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/extensions/catalogs/gth-organize-task.c b/extensions/catalogs/gth-organize-task.c
index 3795628..5ccfb45 100644
--- a/extensions/catalogs/gth-organize-task.c
+++ b/extensions/catalogs/gth-organize-task.c
@@ -541,7 +541,7 @@ static void
gth_organize_task_exec (GthTask *base)
{
GthOrganizeTask *self;
- const char *attributes;
+ const char *attributes = "";
self = GTH_ORGANIZE_TASK (base);
diff --git a/extensions/contact_sheet/dlg-contact-sheet.c b/extensions/contact_sheet/dlg-contact-sheet.c
index d02546a..f4f497b 100644
--- a/extensions/contact_sheet/dlg-contact-sheet.c
+++ b/extensions/contact_sheet/dlg-contact-sheet.c
@@ -268,13 +268,16 @@ entry_help_icon_press_cb (GtkEntry *entry,
gpointer user_data)
{
DialogData *data = user_data;
- GtkWidget *help_box;
+ GtkWidget *help_box = NULL;
if (GTK_WIDGET (entry) == GET_WIDGET ("footer_entry"))
help_box = GET_WIDGET ("page_footer_help_table");
else if (GTK_WIDGET (entry) == GET_WIDGET ("template_entry"))
help_box = GET_WIDGET ("template_help_table");
+ if (help_box == NULL)
+ return;
+
if (gtk_widget_get_visible (help_box))
gtk_widget_hide (help_box);
else
diff --git a/extensions/contact_sheet/dlg-image-wall.c b/extensions/contact_sheet/dlg-image-wall.c
index a361171..6aefe73 100644
--- a/extensions/contact_sheet/dlg-image-wall.c
+++ b/extensions/contact_sheet/dlg-image-wall.c
@@ -203,11 +203,14 @@ entry_help_icon_press_cb (GtkEntry *entry,
gpointer user_data)
{
DialogData *data = user_data;
- GtkWidget *help_box;
+ GtkWidget *help_box = NULL;
if (GTK_WIDGET (entry) == GET_WIDGET ("template_entry"))
help_box = GET_WIDGET ("template_help_table");
+ if (help_box == NULL)
+ return;
+
if (gtk_widget_get_visible (help_box))
gtk_widget_hide (help_box);
else
diff --git a/extensions/gstreamer_tools/gth-media-viewer-page.c b/extensions/gstreamer_tools/gth-media-viewer-page.c
index 8563ef7..2a0bf43 100644
--- a/extensions/gstreamer_tools/gth-media-viewer-page.c
+++ b/extensions/gstreamer_tools/gth-media-viewer-page.c
@@ -529,7 +529,7 @@ static int
get_nearest_rate (double rate)
{
int min_idx = -1;
- double min_delta;
+ double min_delta = 0;
int i;
for (i = 0; i < G_N_ELEMENTS (default_rates); i++) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]