projects
/
libusual.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7361c17
)
string: allow empty strings in parse_word_list()
author
Marko Kreen
<markokr@gmail.com>
Tue, 1 Feb 2011 12:34:29 +0000
(14:34 +0200)
committer
Marko Kreen
<markokr@gmail.com>
Tue, 1 Feb 2011 12:38:09 +0000
(14:38 +0200)
usual/string.c
patch
|
blob
|
blame
|
history
diff --git
a/usual/string.c
b/usual/string.c
index 5ce75c019c9e848b038ab0bc0c6c26207a963042..26a21e205185dec8a1da81aeff62ea9eb9aa2f4a 100644
(file)
--- a/
usual/string.c
+++ b/
usual/string.c
@@
-159,8
+159,6
@@
bool parse_word_list(const char *s, str_cb cb_func, void *cb_arg)
}
/* extract string */
- if (start == end)
- goto failed_syntax;
if (!mbuf_write(&buf, start, end - start))
goto failed;
if (!mbuf_write_byte(&buf, 0))