diff options
Diffstat (limited to 'src/shared/capability.c')
-rw-r--r-- | src/shared/capability.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/shared/capability.c b/src/shared/capability.c index 915ceb9d9b..58f00e6dae 100644 --- a/src/shared/capability.c +++ b/src/shared/capability.c @@ -19,14 +19,9 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include <assert.h> -#include <string.h> #include <unistd.h> #include <errno.h> #include <stdio.h> -#include <sys/types.h> -#include <stdarg.h> -#include <ctype.h> #include <sys/capability.h> #include <sys/prctl.h> #include "grp.h" @@ -55,7 +50,7 @@ unsigned long cap_last_cap(void) { static thread_local unsigned long saved; static thread_local bool valid = false; _cleanup_free_ char *content = NULL; - unsigned long p; + unsigned long p = 0; int r; if (valid) |