Skip to content

Commit

Permalink
capabilities: initialize has_cap
Browse files Browse the repository at this point in the history
Initialize has_cap in cap_bprm_set_creds()

Reported-by: Andrew G. Morgan <[email protected]>
Signed-off-by: Serge Hallyn <[email protected]>
Signed-off-by: James Morris <[email protected]>
  • Loading branch information
hallyn authored and James Morris committed Aug 15, 2011
1 parent 4d49f67 commit 7d8db18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/commoncap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7d8db18

Please sign in to comment.