From: Adrian S. <a3s...@us...> - 2005-03-30 11:38:21
|
Update of /cvsroot/sblim/sfcb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20358 Modified Files: support.c Log Message: Fixed empty line segfault problem for providerRegister.c Index: support.c =================================================================== RCS file: /cvsroot/sblim/sfcb/support.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- support.c 21 Mar 2005 14:22:38 -0000 1.3 +++ support.c 30 Mar 2005 11:38:13 -0000 1.4 @@ -889,7 +889,7 @@ void cntlSkipws(char **p) { - while (**p <= ' ' && **p != '\n') + while (**p && **p <= ' ' && **p != '\n') (*p)++; } @@ -897,7 +897,7 @@ { rv->type = 0; cntlSkipws(&in); - if (*in == '#') { + if (*in == 0 || *in == '#' || *in == '\n') { rv->type = 3; } else if (*in == '[') { |