From: Peter Howkins Date: Thu, 9 Aug 2012 11:07:53 +0000 (+0100) Subject: dtcalc: warning prevention, do not use NULL when you mean 0. X-Git-Tag: 2.2.0b~86 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=697c1522fb474a5e0ea26ddcd2f812ed8ea353eb;p=oweals%2Fcde.git dtcalc: warning prevention, do not use NULL when you mean 0. --- diff --git a/cde/programs/dtcalc/calctool.c b/cde/programs/dtcalc/calctool.c index 41d399b4..b0d2ce9a 100644 --- a/cde/programs/dtcalc/calctool.c +++ b/cde/programs/dtcalc/calctool.c @@ -416,7 +416,7 @@ char **argv ; srand48((long) time((time_t *) 0)) ; /* Seed random number generator. */ make_items() ; /* Create server images and fir frames. */ - if(v->display[0] == NULL) + if(v->display[0] == 0) do_clear() ; /* Initialise and clear display. */ if (v->rstate == TRUE) /* Show the memory register window? */ @@ -941,7 +941,7 @@ init_vars() /* Setup default values for various variables. */ v->key_exp = 0 ; /* Not entering an exponent number. */ v->pending_op = 0 ; /* No pending arithmetic operation. */ v->titleline = NULL ; /* No User supplied title line. */ - v->display[0] = NULL ; + v->display[0] = 0 ; v->x = 0; v->x = 0;