diff --git a/src/smartpl_query.c b/src/smartpl_query.c index 4841d62f..b990fa97 100644 --- a/src/smartpl_query.c +++ b/src/smartpl_query.c @@ -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;