chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4dd072
)
tree-wide: make invocations of extract_first_word more uniform (#4627)
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 11 Nov 2016 17:58:41 +0000
(12:58 -0500)
committer
Sven Eden
<yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:35 +0000
(17:58 +0200)
extract_first_words deals fine with the string being NULL, so drop the upfront
check for that.
src/basic/extract-word.c
patch
|
blob
|
history
diff --git
a/src/basic/extract-word.c
b/src/basic/extract-word.c
index bace3c183671e373a83bcf4ce4655a631b0bb8de..609f5dc22299f6c31d31f6613677eb06049573b0 100644
(file)
--- a/
src/basic/extract-word.c
+++ b/
src/basic/extract-word.c
@@
-48,7
+48,7
@@
int extract_first_word(const char **p, char **ret, const char *separators, Extra
/* Bail early if called after last value or with no input */
if (!*p)
- goto finish
_force_terminate
;
+ goto finish;
c = **p;
if (!separators)