From 42803e21169018b4b1d5fcd7ae0617b8f3f65053 Mon Sep 17 00:00:00 2001 From: default Date: Sun, 18 Jun 2023 20:38:35 +0200 Subject: [PATCH] Fixed crash in _object_fn_by_md5(). --- data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data.c b/data.c index e0a263b..8b8f039 100644 --- a/data.c +++ b/data.c @@ -546,7 +546,7 @@ xs_list *index_list_desc(const char *fn, int skip, int show) static xs_str *_object_fn_by_md5(const char *md5, const char *func) { xs *bfn = xs_fmt("%s/object/%c%c", srv_basedir, md5[0], md5[1]); - xs *ret = NULL; + xs_str *ret; int ok = 1; /* an object deleted from an index; fail but don't bark */