From 35efc961efb80a419dd38ffc3e2880d7894db137 Mon Sep 17 00:00:00 2001
From: Luigi Rizzo <rizzo@icir.org>
Date: Tue, 17 Jul 2007 12:46:25 +0000
Subject: [PATCH] Initialize a variable to avoid a warning when the compiler
 (and/or the optimization level) may think it is used uninitialized. The code
 was indeed correct, but unfortunately the result of some compiler checks such
 as -Wunused and -Wuninitialized depends heavily on the optimization level.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75365 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_minivm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/app_minivm.c b/apps/app_minivm.c
index c7ab7a90d1..2bc3da3b77 100644
--- a/apps/app_minivm.c
+++ b/apps/app_minivm.c
@@ -1982,7 +1982,7 @@ static int minivm_accmess_exec(struct ast_channel *chan, void *data)
 	char filename[PATH_MAX];
 	char tmp[PATH_MAX];
 	char *domain;
-	char *tmpptr;
+	char *tmpptr = NULL;
 	struct minivm_account *vmu;
 	char *username = argv[0];
 	struct ast_flags flags = { 0 };
-- 
GitLab