[gegl] ppm-save: Don't initialize image data to zero



commit c1036378b77b612e37cdb147228b2a636cb72616
Author: Mukund Sivaraman <muks banu com>
Date:   Tue Jun 22 23:40:38 2010 +0530

    ppm-save: Don't initialize image data to zero

 operations/external/ppm-save.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/operations/external/ppm-save.c b/operations/external/ppm-save.c
index 04d3f6c..fcacb55 100644
--- a/operations/external/ppm-save.c
+++ b/operations/external/ppm-save.c
@@ -139,7 +139,7 @@ process (GeglOperation       *operation,
   bpc = (o->bitdepth == 8) ? (sizeof (guchar)) : (sizeof (gushort));
   numsamples = rect->width * rect->height * CHANNEL_COUNT;
 
-  data = g_malloc0 (numsamples * bpc);
+  data = g_malloc (numsamples * bpc);
 
   switch (bpc)
     {



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