[libgdata] demos: Fix a potentially uninitialised variable in the scrapbook
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] demos: Fix a potentially uninitialised variable in the scrapbook
- Date: Mon, 15 Aug 2011 21:23:43 +0000 (UTC)
commit 611a34616426f89ccb4f9d5404fdee4887ff35d4
Author: Philip Withnall <philip tecnocode co uk>
Date: Mon Aug 15 22:16:21 2011 +0100
demos: Fix a potentially uninitialised variable in the scrapbook
demos/scrapbook/scrapbook.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/demos/scrapbook/scrapbook.c b/demos/scrapbook/scrapbook.c
index 360393b..4d685f2 100644
--- a/demos/scrapbook/scrapbook.c
+++ b/demos/scrapbook/scrapbook.c
@@ -177,7 +177,7 @@ GDataMediaThumbnail *
choose_best_thumbnail (GList *thumbnails, gint ideal_size)
{
gint delta = G_MININT;
- GDataMediaThumbnail *thumbnail;
+ GDataMediaThumbnail *thumbnail = NULL;
for (; thumbnails != NULL; thumbnails = thumbnails->next) {
gint new_delta;
GDataMediaThumbnail *current = (GDataMediaThumbnail *) thumbnails->data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]