From bb12ba29bc4bb99fe3a4d83cc8826ca6c5054d70 Mon Sep 17 00:00:00 2001 From: "Mirar (Pontus Hagland)" <pike@sort.mirar.org> Date: Fri, 19 Mar 1999 19:21:49 +0100 Subject: [PATCH] initialised variables to avoid warnings on stupid compilers Rev: src/modules/Image/colortable.c:1.51 Rev: src/modules/Image/operator.c:1.19 --- src/modules/Image/colortable.c | 10 +++++----- src/modules/Image/operator.c | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/modules/Image/colortable.c b/src/modules/Image/colortable.c index 5a5fa07500..3f86379d24 100644 --- a/src/modules/Image/colortable.c +++ b/src/modules/Image/colortable.c @@ -1,12 +1,12 @@ #include "global.h" #include <config.h> -/* $Id: colortable.c,v 1.50 1999/03/19 11:11:36 hubbe Exp $ */ +/* $Id: colortable.c,v 1.51 1999/03/19 18:21:47 mirar Exp $ */ /* **! module Image **! note -**! $Id: colortable.c,v 1.50 1999/03/19 11:11:36 hubbe Exp $ +**! $Id: colortable.c,v 1.51 1999/03/19 18:21:47 mirar Exp $ **! class colortable **! **! This object keeps colortable information, @@ -21,7 +21,7 @@ #undef COLORTABLE_DEBUG #undef COLORTABLE_REDUCE_DEBUG -RCSID("$Id: colortable.c,v 1.50 1999/03/19 11:11:36 hubbe Exp $"); +RCSID("$Id: colortable.c,v 1.51 1999/03/19 18:21:47 mirar Exp $"); #include <math.h> /* fabs() */ @@ -2233,7 +2233,7 @@ void image_colortable_reduce(INT32 args) void image_colortable_operator_plus(INT32 args) { struct object *o,*tmpo=NULL; - struct neo_colortable *dest,*src; + struct neo_colortable *dest,*src=NULL; int i; @@ -2285,7 +2285,7 @@ void image_colortable_operator_plus(INT32 args) void image_colortable_operator_minus(INT32 args) { struct object *o; - struct neo_colortable *dest,*src; + struct neo_colortable *dest,*src=NULL; int i; diff --git a/src/modules/Image/operator.c b/src/modules/Image/operator.c index 9db9770465..dde1959c92 100644 --- a/src/modules/Image/operator.c +++ b/src/modules/Image/operator.c @@ -1,9 +1,9 @@ -/* $Id: operator.c,v 1.18 1998/05/07 18:42:15 mirar Exp $ */ +/* $Id: operator.c,v 1.19 1999/03/19 18:21:49 mirar Exp $ */ /* **! module Image **! note -**! $Id: operator.c,v 1.18 1998/05/07 18:42:15 mirar Exp $ +**! $Id: operator.c,v 1.19 1999/03/19 18:21:49 mirar Exp $ **! class image */ @@ -39,7 +39,7 @@ extern struct program *image_program; #define STANDARD_OPERATOR_HEADER(what) \ struct object *o; \ - struct image *img,*oper; \ + struct image *img,*oper=NULL; \ rgb_group *s1,*s2,*d; \ rgbl_group rgb; \ INT32 i; \ -- GitLab