[gegl] initialize some variables that might be used unset



commit d09630b7028ed3162f115edd95db7cb31fa0bd5c
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Thu Apr 19 17:49:49 2012 +0200

    initialize some variables that might be used unset

 bin/gegl-options.c               |    1 +
 operations/common/write-buffer.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/bin/gegl-options.c b/bin/gegl-options.c
index e538402..88c3af3 100644
--- a/bin/gegl-options.c
+++ b/bin/gegl-options.c
@@ -121,6 +121,7 @@ print_opts (GeglOptions *o)
         mode_str = "Display help information"; break;
       default:
         g_warning ("Unknown GeglOption mode: %d", o->mode);
+        mode_str = "unknown mode";
         break;
     }
 
diff --git a/operations/common/write-buffer.c b/operations/common/write-buffer.c
index 89a5ade..240e641 100644
--- a/operations/common/write-buffer.c
+++ b/operations/common/write-buffer.c
@@ -53,7 +53,7 @@ process (GeglOperation       *operation,
         {
           size_t size;
           gboolean err;
-          cl_int cl_err;
+          cl_int cl_err = 0;
           gint j;
 
           GeglBufferClIterator *i = gegl_buffer_cl_iterator_new (output,   result, output->soft_format, GEGL_CL_BUFFER_WRITE, GEGL_ABYSS_NONE);



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