<h1>Project "FreeSWITCH Source" received a push.</h1>

<h2>branch: master updated</h2>
<pre>
       via: cf827e8f225ad2e30d7356fce982d014023dc077 (commit)
      from: ffca600f4ccfff1cd1421bdaad2a1122963842ba (commit)


</pre>= COMMIT LOG ===========================================================
<div class="highlight"><pre>committer: Anthony Minessale
comments: 
FS-3063 --comment-only try this commit, maybe it was uninit mem

<span style="color: #000080; font-weight: bold">diff --git a/src/switch_core.c b/src/switch_core.c</span>
<span style="color: #000080; font-weight: bold">index 5479229..50fe313 100644</span>
<span style="color: #A00000">--- a/src/switch_core.c</span>
<span style="color: #00A000">+++ b/src/switch_core.c</span>
<span style="color: #800080; font-weight: bold">@@ -98,10 +98,9 @@ static void check_ip(void)</span>
         char old_ip6[256] = &quot;&quot;;
         int ok4 = 1, ok6 = 1;
         int mask = 0;
<span style="color: #A00000">-        static char hostname[256] = &quot;&quot;;</span>
 
<span style="color: #A00000">-        gethostname(hostname, sizeof(hostname));</span>
<span style="color: #A00000">-        switch_core_set_variable(&quot;hostname&quot;, hostname);</span>
<span style="color: #00A000">+        gethostname(runtime.hostname, sizeof(runtime.hostname));</span>
<span style="color: #00A000">+        switch_core_set_variable(&quot;hostname&quot;, runtime.hostname);</span>
 
         switch_find_local_ip(guess_ip4, sizeof(guess_ip4), &amp;mask, AF_INET);
         switch_find_local_ip(guess_ip6, sizeof(guess_ip6), NULL, AF_INET6);
<span style="color: #800080; font-weight: bold">@@ -1280,6 +1279,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc</span>
                 /* one per customer */
                 return SWITCH_STATUS_SUCCESS;
         }
<span style="color: #00A000">+        </span>
<span style="color: #00A000">+        memset(&amp;runtime, 0, sizeof(runtime));</span>
<span style="color: #00A000">+        gethostname(runtime.hostname, sizeof(runtime.hostname));</span>
<span style="color: #00A000">+</span>
 
         runtime.runlevel++;
         runtime.sql_buffer_len = 1024 * 32;
<span style="color: #800080; font-weight: bold">@@ -1348,9 +1351,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc</span>
                 runtime.console = stdout;
         }
 
<span style="color: #A00000">-        gethostname(runtime.hostname, sizeof(runtime.hostname));</span>
         switch_core_set_variable(&quot;hostname&quot;, runtime.hostname);
<span style="color: #A00000">-</span>
         switch_find_local_ip(guess_ip, sizeof(guess_ip), &amp;mask, AF_INET);
         switch_core_set_variable(&quot;local_ip_v4&quot;, guess_ip);
         in.s_addr = mask;
</pre></div>
========================================================================<pre>

Summary of changes:
 src/switch_core.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
</pre>
<p>this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email<br />
For more info, see <a href="http://blog.chomperstomp.com/?p=630">http://blog.chomperstomp.com/?p=630</a>
-- <br />
FreeSWITCH Source</p>