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)
|
static int restore(FTSENT *ftsent)
|
||||||
{
|
{
|
||||||
char *my_file = strdupa(ftsent->fts_path);
|
char *my_file = strdupa(ftsent->fts_path);
|
||||||
int ret;
|
int ret = -1;
|
||||||
char *context, *newcon;
|
char *context, *newcon;
|
||||||
int user_only_changed = 0;
|
int user_only_changed = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue