MCPcopy Create free account
hub / github.com/git/git / config_store_data_clear

Function config_store_data_clear

config.c:2600–2611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2598#define CONFIG_STORE_INIT { 0 }
2599
2600static 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
2613static int matches(const char *key, const char *value,
2614 const struct config_store_data *store)

Calls 1

regfreeFunction · 0.85

Tested by

no test coverage detected