summaryrefslogtreecommitdiff
path: root/lib/psm.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-01-19 14:25:55 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-01-19 14:25:55 +0200
commit2a20195616ad366f060bea772342a99b96735205 (patch)
treed57bb66c985faf972ca6299e74466a3c39eed0e7 /lib/psm.c
parentffcd6a60fc38dfe0d10f22c6023df3e932996310 (diff)
downloadrpm-2a20195616ad366f060bea772342a99b96735205.tar.gz
rpm-2a20195616ad366f060bea772342a99b96735205.tar.bz2
rpm-2a20195616ad366f060bea772342a99b96735205.zip
Fix segfault if ts rootdir is NULL (Pixel)
Diffstat (limited to 'lib/psm.c')
-rw-r--r--lib/psm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/psm.c b/lib/psm.c
index ccf73f349..3b2fd7cb1 100644
--- a/lib/psm.c
+++ b/lib/psm.c
@@ -272,7 +272,7 @@ rpmRC rpmInstallSourcePackage(rpmts ts, FD_t fd,
}
}
- if (strcmp(rootdir, "/") == 0)
+ if (rootdir && strcmp(rootdir, "/") == 0)
rootdir = NULL;
if (specix >= 0) {