From bc1f27ff5515d8e35b881281d6f2f1a7ff1fed27 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Fri, 9 Jul 2021 14:45:41 +0200 Subject: creds: drop unnecessary initialization Coverity also thinks a leak happens here, CID #1458112. This seems wrong, but let's add an assert, maybe that'll help. --- src/creds/creds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/creds') diff --git a/src/creds/creds.c b/src/creds/creds.c index 50de685cd4..19893fb361 100644 --- a/src/creds/creds.c +++ b/src/creds/creds.c @@ -193,7 +193,7 @@ static int transcode( switch (arg_transcode) { case TRANSCODE_BASE64: { - char *buf = NULL; + char *buf; ssize_t l; l = base64mem_full(input, input_size, 79, &buf); -- cgit v1.2.3