| 1322 | } |
| 1323 | |
| 1324 | const char *cache_table_getm(apr_pool_t *p, const apr_table_t *t, |
| 1325 | const char *key) |
| 1326 | { |
| 1327 | cache_table_getm_t state; |
| 1328 | |
| 1329 | state.p = p; |
| 1330 | state.first = NULL; |
| 1331 | state.merged = NULL; |
| 1332 | |
| 1333 | apr_table_do(cache_table_getm_do, &state, t, key, NULL); |
| 1334 | |
| 1335 | if (!state.first) { |
| 1336 | return NULL; |
| 1337 | } |
| 1338 | else if (!state.merged) { |
| 1339 | return state.first; |
| 1340 | } |
| 1341 | else { |
| 1342 | return apr_array_pstrcat(p, state.merged, ','); |
| 1343 | } |
| 1344 | } |
no outgoing calls
no test coverage detected