Fix bug with stripping white space at the front of an option
authorJens Axboe <jens.axboe@oracle.com>
Wed, 28 Mar 2007 17:34:53 +0000 (19:34 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 28 Mar 2007 17:34:53 +0000 (19:34 +0200)
After advancing the passed in pointer, the destination never
got set.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
parse.c

diff --git a/parse.c b/parse.c
index 57865b112e7a9118a9a4e6fc3dd0a60a0d66a9a8..bf1dea908817a5cf8530d0d76aec603173a20f47 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -142,6 +142,8 @@ void strip_blank_front(char **p)
 
        while (isspace(*s))
                s++;
+
+       *p = s;
 }
 
 void strip_blank_end(char *p)