MCPcopy Create free account
hub / github.com/F-Stack/f-stack / stringConfigInit

Function stringConfigInit

app/redis-6.2.6/src/config.c:1796–1798  ·  view source on GitHub ↗

String Configs */

Source from the content-addressed store, hash-verified

1794
1795/* String Configs */
1796static void stringConfigInit(typeData data) {
1797 *data.string.config = (data.string.convert_empty_to_null && !data.string.default_value) ? NULL : zstrdup(data.string.default_value);
1798}
1799
1800static int stringConfigSet(typeData data, sds value, int update, const char **err) {
1801 if (data.string.is_valid_fn && !data.string.is_valid_fn(value, err))

Callers

nothing calls this directly

Calls 1

zstrdupFunction · 0.85

Tested by

no test coverage detected