Minor, simplify

clang-tidy noticed this unnecessary check.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2025-07-06 03:14:07 +02:00
parent d0c5d7be5b
commit 7d4603e13b
+1 -1
View File
@@ -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.,
* 'foo = bar' => '= bar' should be stripped to 'bar'
*/
while (str && strchr(sep, str[0])) {
while (strchr(sep, str[0])) {
ptr = strsep(&str, sep);
if (!ptr)
goto fail;