summaryrefslogtreecommitdiff
path: root/dlib/dlib.c
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-11-13 21:12:44 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-11-13 21:12:44 +0100
commitf0acc85e5c31a7df366c7dd9492438731a1d65ef (patch)
tree78010a14a23bd0c0a09609228e56260be370d990 /dlib/dlib.c
parentb45b1791eee02392840984d6836368c004fbfb5a (diff)
parent41fcd4d8148404ebcad1ed19f11858a4b502148e (diff)
merge with cvs
Diffstat (limited to 'dlib/dlib.c')
-rw-r--r--dlib/dlib.c4
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);