From 121c6e1c5fce1f2a6059bfb2fcc557cbbdee3840 Mon Sep 17 00:00:00 2001 From: Shiju Jose Date: Tue, 9 Mar 2021 16:18:56 +0000 Subject: [PATCH] rasdaemon: fix build error in register_ns_ev_decoder if the sqlite3 is not enabled ns_ev_decoder->stmt_dec_record = NULL; in the register_ns_ev_decoder() should be under #ifdef HAVE_SQLITE3 to fix the compilation error when build without the configure option --enable-sqlite3. Signed-off-by: Shiju Jose Signed-off-by: Mauro Carvalho Chehab --- ras-non-standard-handler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ras-non-standard-handler.c b/ras-non-standard-handler.c index 84d3b1f..6ccf5bc 100644 --- a/ras-non-standard-handler.c +++ b/ras-non-standard-handler.c @@ -74,7 +74,9 @@ int register_ns_ev_decoder(struct ras_ns_ev_decoder *ns_ev_decoder) return -1; ns_ev_decoder->next = NULL; +#ifdef HAVE_SQLITE3 ns_ev_decoder->stmt_dec_record = NULL; +#endif if (!ras_ns_ev_dec_list) { ras_ns_ev_dec_list = ns_ev_decoder; } else { -- 2.50.1