diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-10-19 06:36:35 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-10-19 06:36:35 +0000 |
commit | e782d9cf91c4b5b92897032277c795126d404889 (patch) | |
tree | 71c4793c21350edc3235072e825823494005f5f3 /src/libtipidee/tipidee_conf_get.c | |
parent | 1a7e3d00588725da3d8764fa9d624bc8611be070 (diff) | |
download | tipidee-e782d9cf91c4b5b92897032277c795126d404889.tar.xz |
Fix custom response, get rid of secondary static stralloc
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libtipidee/tipidee_conf_get.c')
-rw-r--r-- | src/libtipidee/tipidee_conf_get.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libtipidee/tipidee_conf_get.c b/src/libtipidee/tipidee_conf_get.c index 2c96d2b..b056fd6 100644 --- a/src/libtipidee/tipidee_conf_get.c +++ b/src/libtipidee/tipidee_conf_get.c @@ -4,12 +4,14 @@ #include <string.h> #include <skalibs/cdb.h> +#include <skalibs/lolstdio.h> #include <tipidee/conf.h> int tipidee_conf_get (tipidee_conf const *conf, char const *key, cdb_data *data) { size_t keylen = strlen(key) ; + LOLDEBUG("tipidee_conf_get: looking up %s", key) ; if (keylen > TIPIDEE_CONF_KEY_MAXLEN) return (errno = EINVAL, 0) ; switch (cdb_find(&conf->c, data, key, keylen)) { |