mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-16 01:03:16 -05:00
Merge pull request #1305 from chme/smartpl-fix-error-check
Fix wrong check for NULL after creating smartpl parser
This commit is contained in:
commit
80679180b7
@ -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…
x
Reference in New Issue
Block a user