<p>In modules/exec/exec_mod.c:</p>
<pre style='color:#555'>&gt; +        }
&gt; +        return 0;
&gt; +}
&gt; +
&gt; +static inline int setenvvar(struct hf_wrapper** hf, int_str* value, int idx)
&gt; +{
&gt; +        #define OSIPS_EXEC &quot;OSIPS_EXEC_&quot;
&gt; +
&gt; +
&gt; +        int len=0;
&gt; +        str sidx;
&gt; +
&gt; +        sidx.s = int2str((unsigned long)idx, &amp;sidx.len);
&gt; +
&gt; +        (*hf)-&gt;envvar=pkg_malloc(strlen(OSIPS_EXEC) + sidx.len + 1/*=*/
&gt; +                                        + (*value).s.len + 1/*\0*/);
</pre>
<p><code>(*value).s</code> == <code>value-&gt;s</code>, the latter is more common.</p>

<p>Applies to this entire function.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/pull/375/files#r19525529">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciWp5L7Jg5Z6O1IMOvbddVNto_h-sks5nIKPcgaJpZM4Cz-_8.gif" width="1" /></p>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"View this Pull Request on GitHub","action":{"@type":"ViewAction","url":"https://github.com/OpenSIPS/opensips/pull/375/files#r19525529","name":"View Pull Request"}}</script>