From 19ba25dd962895d9a25b88678f7a49d21f7adc54 Mon Sep 17 00:00:00 2001 From: Corey Farrell Date: Sat, 18 Nov 2017 20:29:16 -0500 Subject: 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 --- apps/app_minivm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/app_minivm.c') 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; -- cgit v1.2.3