| 235 | |
| 236 | |
| 237 | int 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 | |
| 251 | int init_stats_collector(void) |
no test coverage detected