From 778bd4ca254fee63917e8316938bd019c939e1cb Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Tue, 6 Jan 2015 17:37:56 +0000 Subject: [PATCH] Clear store variable correctly here. --- src/database.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database.c b/src/database.c index 5cfdf094..037dffb7 100644 --- a/src/database.c +++ b/src/database.c @@ -186,7 +186,7 @@ void mosquitto__db_msg_store_deref(struct mosquitto_db *db, struct mosquitto_msg (*store)->ref_count--; if((*store)->ref_count == 0){ mosquitto__db_msg_store_remove(db, *store); - store = NULL; + *store = NULL; } }