chiark / gitweb /
tree-wide: make invocations of extract_first_word more uniform (#4627)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 11 Nov 2016 17:58:41 +0000 (12:58 -0500)
committerSven 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

index bace3c183671e373a83bcf4ce4655a631b0bb8de..609f5dc22299f6c31d31f6613677eb06049573b0 100644 (file)
@@ -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)
 
         /* Bail early if called after last value or with no input */
         if (!*p)
-                goto finish_force_terminate;
+                goto finish;
         c = **p;
 
         if (!separators)
         c = **p;
 
         if (!separators)