diff --git a/funcs/func_presencestate.c b/funcs/func_presencestate.c
index 6005e48bb43b35c198dfeaa4aac144b303180105..8aba89121b5b372f49b8426426858e521a711fbb 100644
--- a/funcs/func_presencestate.c
+++ b/funcs/func_presencestate.c
@@ -850,8 +850,8 @@ static int load_module(void)
 	for (; db_entry; db_entry = db_entry->next) {
 		const char *dev_name = strrchr(db_entry->key, '/') + 1;
 		enum ast_presence_state state;
-		char *message;
-		char *subtype;
+		char *message = NULL;
+		char *subtype = NULL;
 		if (dev_name <= (const char *) 1) {
 			continue;
 		}