logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/
commit: 46adec778e17b7cdb6d9d7b2f7ee0e5b4d11ec3b
parent cc596f2b8d5401b276ab47e825b9136985dea408
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 24 Apr 2025 04:29:52 +0200

lib/consent: call free() regardless of len

free() is a no-op for NULL pointers anyway

Diffstat:

Mlib/consent.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/consent.c b/lib/consent.c @@ -134,6 +134,6 @@ consentf(const char *restrict fmt, ...) line); end: - if(len != 0) free(line); + free(line); return result; }