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:
Dan Walsh 2011-10-27 10:38:27 -04:00 committed by Eric Paris
parent d4a39ca15b
commit b9b7bddb28
1 changed files with 1 additions and 1 deletions

View File

@ -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;