<p>In modules/exec/exec_mod.c:</p>
<pre style='color:#555'>> +        }
> +        return 0;
> +}
> +
> +static inline int setenvvar(struct hf_wrapper** hf, int_str* value, int idx)
> +{
> +        #define OSIPS_EXEC "OSIPS_EXEC_"
> +
> +
> +        int len=0;
> +        str sidx;
> +
> +        sidx.s = int2str((unsigned long)idx, &sidx.len);
> +
> +        (*hf)->envvar=pkg_malloc(strlen(OSIPS_EXEC) + sidx.len + 1/*=*/
> +                                        + (*value).s.len + 1/*\0*/);
</pre>
<p><code>(*value).s</code> == <code>value->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;">—<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>