<p>Mark Petersen has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/18011">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">file.c: ast_fileexists filename is empty or NULL<br><br>return 0 if there is no filename<br><br>ASTERISK-29916<br><br>Change-Id: Ic1617fec118e8497c3a0ff8675a572f75cff34c0<br>---<br>M main/file.c<br>1 file changed, 3 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/11/18011/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/main/file.c b/main/file.c</span><br><span>index 0c1fdd4..abb0bac 100644</span><br><span>--- a/main/file.c</span><br><span>+++ b/main/file.c</span><br><span>@@ -1103,6 +1103,9 @@</span><br><span>      char *buf;</span><br><span>   int buflen;</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+       if(filename == NULL || strlen(filename) == 0)</span><br><span style="color: hsl(120, 100%, 40%);">+         return 0;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>  if (preflang == NULL)</span><br><span>                preflang = "";</span><br><span>     buflen = strlen(preflang) + strlen(filename) + 4;       /* room for everything */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/18011">change 18011</a>. To unsubscribe, or for help writing mail filters, 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/c/asterisk/+/18011"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: Ic1617fec118e8497c3a0ff8675a572f75cff34c0 </div>
<div style="display:none"> Gerrit-Change-Number: 18011 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Mark Petersen <bugs.digium.com@zombie.dk> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>