<p>Corey Farrell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7278">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">app_minivm: Fix possible uninitialized return value.<br><br>Declare 'res' initialized to -1 to deal with earlier error paths that<br>could cause 'res' to be returned uninitialized.<br><br>Change-Id: I8ac2a5755bf4174d89ef893e924c940f702b104e<br>---<br>M apps/app_minivm.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/78/7278/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/apps/app_minivm.c b/apps/app_minivm.c<br>index 0d7a5f4..8f920e0 100644<br>--- a/apps/app_minivm.c<br>+++ b/apps/app_minivm.c<br>@@ -1252,7 +1252,7 @@<br> struct ast_channel *chan = NULL;<br> char *fromaddress;<br> char *fromemail;<br>- int res;<br>+ int res = -1;<br> <br> if (!str1 || !str2) {<br> return -1;<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7278">change 7278</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/7278"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I8ac2a5755bf4174d89ef893e924c940f702b104e </div>
<div style="display:none"> Gerrit-Change-Number: 7278 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>