[gegl] ppm-save: Don't initialize image data to zero
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] ppm-save: Don't initialize image data to zero
- Date: Tue, 22 Jun 2010 18:23:02 +0000 (UTC)
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]