mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05:56 -05:00
[rsp] Fix nullpointer dereference found by scan-build
This commit is contained in:
parent
a95da7966b
commit
5bc52d7bc7
@ -112,7 +112,7 @@ expr returns [ pANTLR3_STRING result, int valid ]
|
||||
}
|
||||
| ^(NOT c = strcrit)
|
||||
{
|
||||
if (!$c.valid)
|
||||
if (!$c.valid || !$c.result)
|
||||
{
|
||||
$valid = 0;
|
||||
}
|
||||
@ -131,7 +131,7 @@ expr returns [ pANTLR3_STRING result, int valid ]
|
||||
}
|
||||
| ^(NOT i = intcrit)
|
||||
{
|
||||
if (!$i.valid)
|
||||
if (!$i.valid || !$i.result)
|
||||
{
|
||||
$valid = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user