mirror of
https://github.com/troglobit/finit.git
synced 2026-11-18 19:30:56 +00:00
Minor, simplify
clang-tidy noticed this unnecessary check. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -120,7 +120,7 @@ static inline char *fgetval(const char *line, const char *key, char *sep)
|
|||||||
* Check if we should strip optional separator, e.g.,
|
* Check if we should strip optional separator, e.g.,
|
||||||
* 'foo = bar' => '= bar' should be stripped to 'bar'
|
* 'foo = bar' => '= bar' should be stripped to 'bar'
|
||||||
*/
|
*/
|
||||||
while (str && strchr(sep, str[0])) {
|
while (strchr(sep, str[0])) {
|
||||||
ptr = strsep(&str, sep);
|
ptr = strsep(&str, sep);
|
||||||
if (!ptr)
|
if (!ptr)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|||||||
Reference in new issue
Block a user