mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtcalc: warning prevention, do not use NULL when you mean 0.
This commit is contained in:
parent
70e1c5a55a
commit
697c1522fb
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue