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

Function clone_pv_stat_name

statistics.c:237–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235
236
237int clone_pv_stat_name(const str *name, str *clone)
238{
239 clone->s = (char*)shm_malloc(name->len);
240 if (clone->s==NULL) {
241 LM_ERR("failed to allocated more shm mem (%d)\n",name->len);
242 return -1;
243 }
244 clone->len = name->len;
245 memcpy(clone->s,name->s,name->len);
246
247 return 0;
248}
249
250
251int init_stats_collector(void)

Callers 1

pv_parse_nameFunction · 0.85

Calls 1

shm_mallocFunction · 0.85

Tested by

no test coverage detected