diff options
author | jcid <devnull@localhost> | 2008-11-11 15:15:58 +0100 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-11-11 15:15:58 +0100 |
commit | 41fcd4d8148404ebcad1ed19f11858a4b502148e (patch) | |
tree | c9c103011554fdfd43673ffdabc36bf879baefa9 /dlib/dlib.c | |
parent | 09835eb26ffd2df0a3b9988f3d8b3f82ef0a4226 (diff) |
- Allowed the rc parser to skip whitespace around the equal sign.
Diffstat (limited to 'dlib/dlib.c')
-rw-r--r-- | dlib/dlib.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |