Misc fixup to keep scan-build happy

This commit is contained in:
ejurgensen
2017-06-20 22:07:49 +02:00
parent 20128e2235
commit 01308f7f83
2 changed files with 8 additions and 16 deletions

View File

@@ -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;