Fix wrong check for NULL after creating smartpl parser

This commit is contained in:
chme 2021-09-04 09:55:11 +02:00
parent e63aba61c5
commit d8a344d87c

View File

@ -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 // Finally, now that we have our lexer constructed, we can create the parser
psr = SMARTPLParserNew(tstream); // CParserNew is generated by ANTLR3 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"); DPRINTF(E_LOG, L_SCAN, "Could not create SMARTPL parser\n");
ret = -1; ret = -1;