[gimp] plug-ins: need to initialize "mapped" booleans to FALSE



commit 74d44ee2df07ce0be62e1edce9a8cf5bcb672f42
Author: Michael Natterer <mitch gimp org>
Date:   Thu Apr 1 21:06:09 2010 +0200

    plug-ins: need to initialize "mapped" booleans to FALSE

 plug-ins/file-uri/uri.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/file-uri/uri.c b/plug-ins/file-uri/uri.c
index e458001..b5288ce 100644
--- a/plug-ins/file-uri/uri.c
+++ b/plug-ins/file-uri/uri.c
@@ -231,10 +231,10 @@ load_image (const gchar  *uri,
             GimpRunMode   run_mode,
             GError      **error)
 {
-  gchar    *tmpname    = NULL;
   gint32    image_ID   = -1;
   gboolean  name_image = FALSE;
-  gboolean  mapped;
+  gchar    *tmpname;
+  gboolean  mapped     = FALSE;
 
   tmpname = uri_backend_map_image (uri, run_mode);
 
@@ -282,7 +282,7 @@ save_image (const gchar  *uri,
 {
   GimpPDBStatusType  status = GIMP_PDB_EXECUTION_ERROR;
   gchar             *tmpname;
-  gboolean           mapped;
+  gboolean           mapped = FALSE;
 
   tmpname = uri_backend_map_image (uri, run_mode);
 



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