diff options
author | jbj <devnull@localhost> | 2004-04-07 23:26:00 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2004-04-07 23:26:00 +0000 |
commit | dc885367f50e2d0669abd6308e1a09bb9aa9ae2d (patch) | |
tree | 15a51665574d4af624816905e5061fdec9b13265 /lib/rpmfi.c | |
parent | 84573a3571e268dff5d103b47bf1ecb37127a13a (diff) | |
download | librpm-tizen-dc885367f50e2d0669abd6308e1a09bb9aa9ae2d.tar.gz librpm-tizen-dc885367f50e2d0669abd6308e1a09bb9aa9ae2d.tar.bz2 librpm-tizen-dc885367f50e2d0669abd6308e1a09bb9aa9ae2d.zip |
- fix: segfault on --recontext if file_contexts unreadable (#117374).
- fix: /etc/security/selinux/file_contexts is default path.
CVS patchset: 7220
CVS date: 2004/04/07 23:26:00
Diffstat (limited to 'lib/rpmfi.c')
-rw-r--r-- | lib/rpmfi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rpmfi.c b/lib/rpmfi.c index 70ad7531d..0574c1bd6 100644 --- a/lib/rpmfi.c +++ b/lib/rpmfi.c @@ -1619,7 +1619,7 @@ void rpmfiBuildREContexts(Header h, int scareMem = 0; rpmfi fi = rpmfiNew(NULL, h, RPMTAG_BASENAMES, scareMem); rpmsx sx = NULL; - const char ** av; + const char ** av = NULL; int ac; size_t nb; char * t; @@ -1628,7 +1628,6 @@ void rpmfiBuildREContexts(Header h, int * fcnb; if ((ac = rpmfiFC(fi)) <= 0) { - av = NULL; ac = 0; goto exit; } |