[gegl] operations: Fix warning about mixed code and variables in path.c



commit d927c935346d6c0ee14acfa84e534b920cf320a7
Author: Martin Nordholts <martinn src gnome org>
Date:   Tue Jan 5 13:44:00 2010 +0100

    operations: Fix warning about mixed code and variables in path.c

 operations/external/path.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/operations/external/path.c b/operations/external/path.c
index 30b63ff..ae72f88 100644
--- a/operations/external/path.c
+++ b/operations/external/path.c
@@ -190,8 +190,10 @@ process (GeglOperation       *operation,
           GStaticMutex mutex = G_STATIC_MUTEX_INIT;
           cairo_t *cr;
           cairo_surface_t *surface;
+          guchar *data;
+
           g_static_mutex_lock (&mutex);
-          guchar *data = (void*)gegl_buffer_linear_open (output, result, NULL, babl_format ("B'aG'aR'aA u8"));
+          data = (void*)gegl_buffer_linear_open (output, result, NULL, babl_format ("B'aG'aR'aA u8"));
           surface = cairo_image_surface_create_for_data (data,
                                                          CAIRO_FORMAT_ARGB32,
                                                          result->width,



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