| 149 | |
| 150 | |
| 151 | static tpl_tcell_t* create_tcell(const char *key, int key_len) |
| 152 | { |
| 153 | tpl_tcell_t* section = (tpl_tcell_t*)acl_mymalloc(key_len + 1 |
| 154 | + sizeof(tpl_tcell_t) |
| 155 | + sizeof(tpl_t)); |
| 156 | section->tpl = (tpl_t *)(section + 1); |
| 157 | tpl_init(section->tpl); |
| 158 | |
| 159 | section->key = (char *)(section->tpl + 1); |
| 160 | (void)memcpy(section->key, key, key_len); |
| 161 | |
| 162 | section->key[key_len] = 0; |
| 163 | section->next = NULL; |
| 164 | section->_next = NULL; |
| 165 | return section; |
| 166 | } |
| 167 | |
| 168 | |
| 169 | static void destroy_tcell(tpl_tcell_t* section) |
no test coverage detected
searching dependent graphs…