]> Pileus Git - ~andy/linux/blobdiff - security/commoncap.c
capabilities: initialize has_cap
[~andy/linux] / security / commoncap.c
index 0f620c564fa876ce114739e5051b2ddb429c41d3..ee4f8486e5f563dff63c13278a1258e43e2b7859 100644 (file)
@@ -479,7 +479,7 @@ int cap_bprm_set_creds(struct linux_binprm *bprm)
 {
        const struct cred *old = current_cred();
        struct cred *new = bprm->cred;
-       bool effective, has_cap;
+       bool effective, has_cap = false;
        int ret;
 
        effective = false;