[OpenSIPS-Devel] [opensips] added exec(cmd, output, input, error, avpenv) function for exec (#375)

Walter Doekes notifications at github.com
Wed Oct 29 09:59:08 CET 2014


> +	}
> +	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*/);

`(*value).s` == `value->s`, the latter is more common.

Applies to this entire function.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/375/files#r19525529
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20141029/463e00cc/attachment-0001.htm>


More information about the Devel mailing list