| 2598 | #define CONFIG_STORE_INIT { 0 } |
| 2599 | |
| 2600 | static void config_store_data_clear(struct config_store_data *store) |
| 2601 | { |
| 2602 | free(store->key); |
| 2603 | if (store->value_pattern != NULL && |
| 2604 | store->value_pattern != CONFIG_REGEX_NONE) { |
| 2605 | regfree(store->value_pattern); |
| 2606 | free(store->value_pattern); |
| 2607 | } |
| 2608 | free(store->parsed); |
| 2609 | free(store->seen); |
| 2610 | memset(store, 0, sizeof(*store)); |
| 2611 | } |
| 2612 | |
| 2613 | static int matches(const char *key, const char *value, |
| 2614 | const struct config_store_data *store) |
no test coverage detected