Fixed bug in el_enum_attr()

SVN revision: 959
This commit is contained in:
Stefan Ritt 2004-07-14 15:20:13 +00:00
parent cee96e0da8
commit d6004ac26e

View File

@ -6,6 +6,9 @@
Contents: Web server program for Electronic Logbook ELOG Contents: Web server program for Electronic Logbook ELOG
$Log$ $Log$
Revision 1.384 2004/07/14 15:20:13 midas
Fixed bug in el_enum_attr()
Revision 1.383 2004/07/14 14:25:48 midas Revision 1.383 2004/07/14 14:25:48 midas
Don't evaluate 'preset xxx' on replies Don't evaluate 'preset xxx' on replies
@ -2577,8 +2580,10 @@ void el_enum_attr(char *message, int n, char *attr_name, char *attr_value)
break; break;
p = strchr(p, '\n'); p = strchr(p, '\n');
if (!p) if (!p) {
str[0] = 0; /* not a valid line */
break; break;
}
while (*p == '\n' || *p == '\r') while (*p == '\n' || *p == '\r')
p++; p++;