mirror of
https://github.com/topjohnwu/selinux.git
synced 2025-02-24 21:31:51 +00:00
policycoreutils: setfiles: fix use before initialized
There are code paths where ret can be returned without being initialized Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
d4a39ca15b
commit
b9b7bddb28
@ -103,7 +103,7 @@ static int match(const char *name, struct stat *sb, char **con)
|
||||
static int restore(FTSENT *ftsent)
|
||||
{
|
||||
char *my_file = strdupa(ftsent->fts_path);
|
||||
int ret;
|
||||
int ret = -1;
|
||||
char *context, *newcon;
|
||||
int user_only_changed = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user