bug no. 3047884

This commit is contained in:
h_vogt 2010-08-19 19:48:00 +00:00
parent 9f503c6c3f
commit fc2df06f9b
3 changed files with 15 additions and 3 deletions

View File

@ -1,4 +1,8 @@
2010-08-19 Holger Vogt
* xpressn.c: bug no. 3047884 fixed
inp.c: prevent crash if .param is last line in input deck
2010-08-18 Holger Vogt
* configure.in: add TCLCYG
* autogen.sh: if --adms is selected, read the section from configure.in
and store it in AC_CONFIG_FILES of temporary temp-adms.ac.

View File

@ -591,9 +591,17 @@ inp_spsource(FILE *fp, bool comfile, char *filename)
if ( ciprefix( ".param", dd->li_line ) ) {
ft_curckt->ci_param = dd;
/* find end of .param statements */
while ( ciprefix( ".param", dd->li_line ) ) { prev_param = dd; dd = dd->li_next; }
while ( ciprefix( ".param", dd->li_line ) ) {
prev_param = dd;
dd = dd->li_next;
if (dd == NULL) break; // no line after .param line
}
prev_card->li_next = dd;
prev_param->li_next = NULL;
prev_param->li_next = NULL;
if (dd == NULL) {
fprintf(cp_err, "Warning: Missing .end card!\n");
break; // no line after .param line
}
}
if ( ciprefix( ".meas", dd->li_line ) ) {

View File

@ -953,7 +953,7 @@ fetchoperator (tdico * dico,
state = 2;
level = 2;
}
else if (cpos (c, "=<>#GL") > 0)
else if (cpos (c, "=<>#GL") >= 0)
{
state = 2;
level = 5;