mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-01 02:03:45 -04:00
[smartpl] calloc error check to avoid Coverity warning
This commit is contained in:
parent
4d8eed49a3
commit
410fa4b80e
@ -63,7 +63,8 @@ smartpl_query_parse_file(struct smartpl *smartpl, const char *file)
|
||||
}
|
||||
|
||||
fseek(f, 0, SEEK_SET);
|
||||
expression = calloc(1, size + 1);
|
||||
|
||||
CHECK_NULL(L_SCAN, expression = calloc(1, size + 1));
|
||||
|
||||
got = fread(expression, 1, size, f);
|
||||
if (got != size)
|
||||
|
Loading…
x
Reference in New Issue
Block a user