From 9461e0c9b08f875c7911d77aa0772caf25c21f17 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Tue, 19 Mar 2019 06:55:19 +0100 Subject: [PATCH] Review comments Signed-off-by: DL6ER --- capabilities.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/capabilities.c b/capabilities.c index dd20089ab..5bb39e327 100644 --- a/capabilities.c +++ b/capabilities.c @@ -26,7 +26,6 @@ bool check_capabilities() cap_user_header_t hdr = calloc(sizeof(*hdr), capsize); // Determine capabilities version used by the current kernel - memset(hdr, 0, sizeof(*hdr)); capget(hdr, NULL); // Check version @@ -102,6 +101,6 @@ bool check_capabilities() free(hdr); free(data); - // All okay! + // Return whether capabilities are all okay return capabilities_okay; }