summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-06-18 20:38:35 +0200
committerdefault <nobody@localhost>2023-06-18 20:38:35 +0200
commit42803e21169018b4b1d5fcd7ae0617b8f3f65053 (patch)
tree132f72fde0cfbb5a8201ca3c82a4ea050f28b525
parent52782326160f6d8ecbae26de665502d3fecd7753 (diff)
Fixed crash in _object_fn_by_md5().
-rw-r--r--data.c2
1 files changed, 1 insertions, 1 deletions
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 */