summaryrefslogtreecommitdiffstats
path: root/src/creds
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-07-09 14:45:41 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-07-09 15:13:12 +0200
commitbc1f27ff5515d8e35b881281d6f2f1a7ff1fed27 (patch)
treeffa69b42c75ebb74fb22d698036729f31e7c13d4 /src/creds
parentcore: drop unnecessary initialization (diff)
downloadsystemd-bc1f27ff5515d8e35b881281d6f2f1a7ff1fed27.tar.xz
systemd-bc1f27ff5515d8e35b881281d6f2f1a7ff1fed27.zip
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.
Diffstat (limited to 'src/creds')
-rw-r--r--src/creds/creds.c2
1 files changed, 1 insertions, 1 deletions
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);