1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-31 16:21:26 +03:00

basic/capability-util: add missing initialization

There was no error, because the pointer is unconditionally set below.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-02-16 13:50:08 +01:00
parent 6aa601c56c
commit a779cf30d2

View File

@ -18,7 +18,7 @@
#include "util.h"
int have_effective_cap(int value) {
_cleanup_cap_free_ cap_t cap;
_cleanup_cap_free_ cap_t cap = NULL;
cap_flag_value_t fv;
cap = cap_get_proc();