From 41fcd4d8148404ebcad1ed19f11858a4b502148e Mon Sep 17 00:00:00 2001 From: jcid Date: Tue, 11 Nov 2008 15:15:58 +0100 Subject: - Allowed the rc parser to skip whitespace around the equal sign. --- dlib/dlib.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dlib') diff --git a/dlib/dlib.c b/dlib/dlib.c index 76797af5..0f318134 100644 --- a/dlib/dlib.c +++ b/dlib/dlib.c @@ -776,6 +776,10 @@ int dParser_get_rc_pair(char **line, char **name, char **value) *p = 0; *name = *line; + /* skip whitespace */ + if (p < eq) + for (++p; isspace(*p); ++p); + /* get value */ if (p == eq) { for (++p; isspace(*p); ++p); -- cgit v1.2.3