[gimp/osx-build: 53/55] Initialize constant zero=0 properly



commit 0c2f431ec238765a7b7a2ab1597ee3f74f8cc00a
Author: Sven Claussner <sclaussner src gnome org>
Date:   Fri Jul 18 08:23:44 2014 +0200

    Initialize constant zero=0 properly
    
    to avoid undefined values that make it impossible to write proper
    zero terminators.

 app/xcf/xcf-save.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/xcf/xcf-save.c b/app/xcf/xcf-save.c
index f314373..fb9ab5f 100644
--- a/app/xcf/xcf-save.c
+++ b/app/xcf/xcf-save.c
@@ -181,7 +181,7 @@ static gboolean xcf_save_vectors       (XcfInfo           *info,
                                (gdouble) progress / (gdouble) max_progress); \
   } G_STMT_END
 
-static const guint32 zero;
+static const guint32 zero = 0;
 
 /**
  * xcf_save_choose_format:


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