[gthumb] fixed "uninitialized variable" warning
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] fixed "uninitialized variable" warning
- Date: Wed, 14 Apr 2010 18:39:42 +0000 (UTC)
commit 83cfa47eb98937785d7f1996c26e79d7a4a4baa1
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Apr 14 19:55:15 2010 +0200
fixed "uninitialized variable" warning
extensions/flicker/dlg-import-from-flickr.c | 2 +-
gthumb/gth-browser.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/extensions/flicker/dlg-import-from-flickr.c b/extensions/flicker/dlg-import-from-flickr.c
index 57213e8..7658405 100644
--- a/extensions/flicker/dlg-import-from-flickr.c
+++ b/extensions/flicker/dlg-import-from-flickr.c
@@ -421,7 +421,7 @@ flickr_thumbnail_loader (GthFileData *file_data,
GthThumbLoader *thumb_loader = data;
int requested_size;
FlickrPhoto *photo;
- const char *uri;
+ const char *uri = NULL;
photo = (FlickrPhoto *) g_file_info_get_attribute_object (file_data->info, "flickr::object");
requested_size = gth_thumb_loader_get_requested_size (thumb_loader);
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 4280e44..452d66c 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -3239,7 +3239,7 @@ _gth_browser_make_file_visible (GthBrowser *browser,
g_signal_handlers_unblock_by_func (view, gth_file_view_selection_changed_cb, browser);
visibility = gth_file_view_get_visibility (GTH_FILE_VIEW (view), file_pos);
if (visibility != GTH_VISIBILITY_FULL) {
- double align;
+ double align = 0.0;
switch (visibility) {
case GTH_VISIBILITY_NONE:
@@ -3269,7 +3269,7 @@ _gth_browser_make_file_visible (GthBrowser *browser,
g_signal_handlers_unblock_by_func (view, gth_thumbnail_view_selection_changed_cb, browser);
visibility = gth_file_view_get_visibility (GTH_FILE_VIEW (view), file_pos);
if (visibility != GTH_VISIBILITY_FULL) {
- double align;
+ double align = 0.0;
switch (visibility) {
case GTH_VISIBILITY_NONE:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]