MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / create_vars

Function create_vars

modules/exec/exec_hf.c:321–337  ·  view source on GitHub ↗

create env vars in malloc memory */

Source from the content-addressed store, hash-verified

319
320/* create env vars in malloc memory */
321static int create_vars(struct hf_wrapper *list, int offset)
322{
323 int var_cnt;
324 struct hf_wrapper *w;
325
326 /* create variables now */
327 var_cnt=0;
328 for(w=list;w;w=w->next_other) {
329 if (!print_var(w, offset)) {
330 LM_ERR("create_vars failed\n");
331 return 0;
332 }
333 var_cnt++;
334 }
335
336 return var_cnt;
337}
338
339environment_t *replace_env(struct hf_wrapper *list)
340{

Callers 1

set_envFunction · 0.85

Calls 1

print_varFunction · 0.85

Tested by

no test coverage detected