Merge pull request #1305 from chme/smartpl-fix-error-check

Fix wrong check for NULL after creating smartpl parser
This commit is contained in:
Christian Meffert 2021-09-04 10:25:56 +02:00 committed by GitHub
commit 80679180b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;