summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0f77b58)
raw | patch | inline | side by side (parent: 0f77b58)
author | Florian Forster <octo@noris.net> | |
Thu, 21 Aug 2008 07:38:18 +0000 (09:38 +0200) | ||
committer | Florian Forster <octo@noris.net> | |
Thu, 21 Aug 2008 07:38:18 +0000 (09:38 +0200) |
I was so focused on values with spaces, that I forgot to test trivial
cases :/
cases :/
src/utils_parse_option.c | patch | blob | history |
index 06e9f2801e2ba582f856a757ff7abfe6672d926f..6ed2301fea1e7e37585053f796c92e3a559b06b3 100644 (file)
--- a/src/utils_parse_option.c
+++ b/src/utils_parse_option.c
else /* an unquoted value */
{
buffer = value;
- while (!isspace ((int) *buffer))
+ while ((*buffer != 0) && !isspace ((int) *buffer))
buffer++;
if (*buffer != 0)
{