From d8a344d87c901768e3f4c64a2d052039ae265696 Mon Sep 17 00:00:00 2001 From: chme Date: Sat, 4 Sep 2021 09:55:11 +0200 Subject: [PATCH] Fix wrong check for NULL after creating smartpl parser --- src/smartpl_query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;