[gtk+] Fix warning: Initialize to TRUE the returned variable



commit 141a7dac000a5cc4c103e614291021f0b292660c
Author: Javier Jardón <jjardon gnome org>
Date:   Fri Oct 30 19:11:28 2009 +0100

    Fix warning: Initialize to TRUE the returned variable
    
    Also, fixing some indentation problems

 gdk-pixbuf/io-qtif.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gdk-pixbuf/io-qtif.c b/gdk-pixbuf/io-qtif.c
index 0b80fe0..a30b5c0 100644
--- a/gdk-pixbuf/io-qtif.c
+++ b/gdk-pixbuf/io-qtif.c
@@ -268,14 +268,14 @@ static gpointer gdk_pixbuf__qtif_image_begin_load (GdkPixbufModuleSizeFunc size_
     context->prepare_func = prepare_func;
     context->update_func = update_func;
 
-	return context;
+    return context;
 }
 
 /* Incremental load clean up. */
 static gboolean gdk_pixbuf__qtif_image_stop_load (gpointer data, GError **error)
 {
     QTIFContext *context = (QTIFContext *)data;
-    gboolean ret;
+    gboolean ret = TRUE;
 
     if(context->loader != NULL)
     {
@@ -288,7 +288,8 @@ static gboolean gdk_pixbuf__qtif_image_stop_load (gpointer data, GError **error)
         }
     }
     g_free(context);
-	return ret;
+
+    return ret;
 }
 
 /* Create a new GdkPixbufLoader and connect to its signals. */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]