dtcalc: warning prevention, do not use NULL when you mean 0.
authorPeter Howkins <peter@debian.uk.nds.com>
Thu, 9 Aug 2012 11:07:53 +0000 (12:07 +0100)
committerPeter Howkins <peter@debian.uk.nds.com>
Thu, 9 Aug 2012 11:07:53 +0000 (12:07 +0100)
cde/programs/dtcalc/calctool.c

index 41d399b4c5ca1d7c7be8281e6065c932708d57c8..b0d2ce9a81bbf54479dc3f69e84091a3f4823875 100644 (file)
@@ -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;