diff options
author | Corey Farrell <git@cfware.com> | 2017-11-18 20:29:16 -0500 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2017-11-18 20:29:16 -0500 |
commit | 2fab3aacd6d0238d57e9f2288d75e0ea152666bd (patch) | |
tree | 408de4bffc8555fe84f5a9536fa52805bb1ff344 /apps/app_minivm.c | |
parent | 4181b6f3777655efa5f0523a8d2ab2b0e5e566fb (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/app_minivm.c')
-rw-r--r-- | apps/app_minivm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_minivm.c b/apps/app_minivm.c index 0d7a5f407..8f920e09f 100644 --- a/apps/app_minivm.c +++ b/apps/app_minivm.c @@ -1252,7 +1252,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; |