summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2017-11-18 20:29:16 -0500
committerCorey Farrell <git@cfware.com>2017-11-18 19:37:06 -0600
commit3dca4c774201d8b0eca5b9ecf34ffd1db53a200c (patch)
treee61108f2b79cb83ae0bc2ea43a576930762ed883 /apps
parentef8ee3ee69fb1b2f9bb2694217d8dfdf124d251f (diff)
app_minivm: Fix possible uninitialized return value.
Declare 'res' initialized to -1 to deal with earlier error paths that could cause 'res' to be returned uninitialized. Change-Id: I8ac2a5755bf4174d89ef893e924c940f702b104e
Diffstat (limited to 'apps')
-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 6b1e8bb83..dcf0ee2fa 100644
--- a/apps/app_minivm.c
+++ b/apps/app_minivm.c
@@ -1254,7 +1254,7 @@ static int sendmail(struct minivm_template *template, struct minivm_account *vmu
struct ast_channel *chan = NULL;
char *fromaddress;
char *fromemail;
- int res;
+ int res = -1;
if (!str1 || !str2) {
return -1;