aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_minivm.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-17 12:46:25 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-17 12:46:25 +0000
commita04d4f552aadcb3284aea977799e3214a4ec720d (patch)
treec2e388d404d306a65401f0405d2ffb3c02b3a849 /apps/app_minivm.c
parent8777ed7c804a72b4b913042cba856bf4f8b86497 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@75365 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_minivm.c')
-rw-r--r--apps/app_minivm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_minivm.c b/apps/app_minivm.c
index c7ab7a90d..2bc3da3b7 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 };