mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 16:15:57 -05:00
Fix wrong check for NULL after creating smartpl parser
This commit is contained in:
parent
e63aba61c5
commit
d8a344d87c
@ -74,7 +74,7 @@ parse_input(struct smartpl *smartpl, pANTLR3_INPUT_STREAM input)
|
||||
// Finally, now that we have our lexer constructed, we can create the parser
|
||||
psr = SMARTPLParserNew(tstream); // CParserNew is generated by ANTLR3
|
||||
|
||||
if (tstream == NULL)
|
||||
if (psr == NULL)
|
||||
{
|
||||
DPRINTF(E_LOG, L_SCAN, "Could not create SMARTPL parser\n");
|
||||
ret = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user