summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-01-03 18:32:49 +0000
committerjbj <devnull@localhost>2000-01-03 18:32:49 +0000
commit540413b30c1e27ac0e5d861c87dac49669b24aca (patch)
tree2676f08e237d484b7a68d68bbe2e2d6a3c605bd0 /lib
parente0beefa28944f291392988a41db5604e487e4be8 (diff)
downloadrpm-540413b30c1e27ac0e5d861c87dac49669b24aca.tar.gz
rpm-540413b30c1e27ac0e5d861c87dac49669b24aca.tar.bz2
rpm-540413b30c1e27ac0e5d861c87dac49669b24aca.zip
fix: fp.subDir was incorrectly set to NULL in sparse chroot's.
CVS patchset: 3503 CVS date: 2000/01/03 18:32:49
Diffstat (limited to 'lib')
-rw-r--r--lib/fprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fprint.c b/lib/fprint.c
index d31ff3162..8ac0bed03 100644
--- a/lib/fprint.c
+++ b/lib/fprint.c
@@ -100,7 +100,7 @@ static fingerPrint doLookup(fingerPrintCache cache,
fp.subDir = dirName + (end - buf);
if (fp.subDir[0] == '/' && fp.subDir[1] != '\0')
fp.subDir++;
- else
+ if (fp.subDir[0] == '\0')
fp.subDir = NULL;
fp.baseName = baseName;
if (!scareMemory && fp.subDir != NULL)