Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Mar 19, 2019
1 parent dbf6e08 commit 9461e0c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions capabilities.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -102,6 +101,6 @@ bool check_capabilities()
free(hdr);
free(data);

// All okay!
// Return whether capabilities are all okay
return capabilities_okay;
}

0 comments on commit 9461e0c

Please sign in to comment.