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

Function buf_init

xlog.c:121–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120
121static int buf_init(void)
122{
123 LM_DBG("initializing...\n");
124 log_buf = (char*)pkg_malloc((xlog_buf_size+1)*sizeof(char));
125 if(log_buf==NULL)
126 {
127 LM_ERR("no pkg memory left\n");
128 return -1;
129 }
130 return 0;
131}
132
133
134int init_xlog(void)

Callers 1

init_xlogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected