mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-21 18:26:06 -05:00
Misc fixup to keep scan-build happy
This commit is contained in:
@@ -565,7 +565,7 @@ m_readfile(const char *path, int num_lines)
|
||||
}
|
||||
|
||||
lines[i] = trimwhitespace(line);
|
||||
if (strlen(lines[i]) == 0)
|
||||
if (!lines[i] || (strlen(lines[i]) == 0))
|
||||
{
|
||||
DPRINTF(E_LOG, L_MISC, "Line %d in '%s' is invalid\n", i+1, path);
|
||||
goto error;
|
||||
|
||||
Reference in New Issue
Block a user