From 3e3032cfa044268cee76735823755db274025021 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 13 Jun 2023 18:27:10 -0700 Subject: *: smattering of random small fixes to silence -Wall I thought the build was already using -Wall but that seems to not be the case, maybe got lost somewhere along the line or messed up in configure.ac After forcing a build with -Wall -Werror, these showed up. Fixed up in the obvious way, nothing too scary. --- src/til_settings.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/til_settings.c') diff --git a/src/til_settings.c b/src/til_settings.c index fe4546b..2985635 100644 --- a/src/til_settings.c +++ b/src/til_settings.c @@ -85,7 +85,6 @@ til_settings_t * til_settings_new(const char *prefix, const til_settings_t *pare const char *p; til_settings_t *settings; til_str_t *value_str; - char *value_buf; assert(label); @@ -719,4 +718,6 @@ int til_settings_fprint_path(const til_settings_t *settings, FILE *out) r = -EPIPE; free(buf); + + return r; } -- cgit v1.2.1