Browse Source

cleanup, use '\0' and NULL

pre-master-46
rlar 12 years ago
parent
commit
5c97e31049
  1. 2
      src/frontend/inp.c
  2. 2
      src/spicelib/parser/inppas2.c

2
src/frontend/inp.c

@ -455,7 +455,7 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile)
/* all commands from within .control section */
} else {
s = dd->li_line;
dd->li_line = 0; /* SJB - prevent line_free() freeing the string (now pointed at by wl->wl_word) */
dd->li_line = NULL; /* SJB - prevent line_free() freeing the string (now pointed at by wl->wl_word) */
}
controls = wl_cons(s, controls);
}

2
src/spicelib/parser/inppas2.c

@ -253,7 +253,7 @@ void INPpas2(CKTcircuit *ckt, card * data, INPtables * tab, TSKtask *task)
return;
break;
case 0:
case '\0':
break;
default:

Loading…
Cancel
Save