Commit 39dbd749 authored by Geoff Simmons's avatar Geoff Simmons

Fix a bug parsing config files.

parent ebcd4c1c
...@@ -52,12 +52,10 @@ conf_ParseLine(char *ptr, char **lval, char **rval) ...@@ -52,12 +52,10 @@ conf_ParseLine(char *ptr, char **lval, char **rval)
endlval = ptr; endlval = ptr;
while(isspace(*ptr) && *++ptr) while(isspace(*ptr) && *++ptr)
; ;
if (ptr == '\0' || *ptr != '=') if (*ptr == '\0' || *ptr != '=')
return(1); return(1);
while(*++ptr && isspace(*ptr)) while(*++ptr && isspace(*ptr))
; ;
if (ptr == '\0')
return(1);
*endlval = '\0'; *endlval = '\0';
*rval = ptr; *rval = ptr;
return(0); return(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment