projects
/
notmuch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
test: replace $PWD with YYY in emacs & emacs-show tests
[notmuch.git]
/
util
/
string-util.c
diff --git
a/util/string-util.c
b/util/string-util.c
index aba9aa836e6522c7c51be56458dfee6fd48618cb..a5622d7a209dfee96b90e5e3dbd698cc455ad6df 100644
(file)
--- a/
util/string-util.c
+++ b/
util/string-util.c
@@
-127,7
+127,7
@@
parse_boolean_term (void *ctx, const char *str,
/* Parse prefix */
str = skip_space (str);
const char *pos = strchr (str, ':');
- if (! pos)
+ if (! pos
|| pos == str
)
goto FAIL;
*prefix_out = talloc_strndup (ctx, str, pos - str);
if (! *prefix_out) {