> +     }
> +     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
_______________________________________________
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to