diff options
-rw-r--r-- | src/basic/hexdecoct.c | 1 | ||||
-rw-r--r-- | src/creds/creds.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/basic/hexdecoct.c b/src/basic/hexdecoct.c index 172ae8a921..8c83a0e71a 100644 --- a/src/basic/hexdecoct.c +++ b/src/basic/hexdecoct.c @@ -645,6 +645,7 @@ ssize_t base64mem_full( *z = 0; *out = r; + assert(z >= r); /* Let static analyzers know that the answer is non-negative. */ return z - r; } 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); |