summaryrefslogtreecommitdiffstats
path: root/isys/imount.c
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-03-27 15:25:48 -0400
committerChris Lumens <clumens@redhat.com>2009-03-27 15:25:48 -0400
commit054b3ad62b8c88c86dfc873991bdc4416ec3f215 (patch)
tree32f83d5c241c402becfc4c26bdca10717a044f99 /isys/imount.c
parent1c66c7d2f0ad20d0a3cbf9d435d2b6c5ca082636 (diff)
parentb74a30461c62520e08b5972607257149901ef473 (diff)
downloadanaconda-054b3ad62b8c88c86dfc873991bdc4416ec3f215.tar.gz
anaconda-054b3ad62b8c88c86dfc873991bdc4416ec3f215.tar.xz
anaconda-054b3ad62b8c88c86dfc873991bdc4416ec3f215.zip
Merge commit 'origin/anaconda-storage-branch'
Diffstat (limited to 'isys/imount.c')
-rw-r--r--isys/imount.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/isys/imount.c b/isys/imount.c
index e10220640..fd51fdefa 100644
--- a/isys/imount.c
+++ b/isys/imount.c
@@ -147,8 +147,10 @@ int doPwMount(char *dev, char *where, char *fs, char *options, char **err) {
close(pipefd[1]);
if (err != NULL) {
- rc = readFD(pipefd[0], err);
- rc = write(programLogFD, err, 4096);
+ if (*err != NULL) {
+ rc = readFD(pipefd[0], err);
+ rc = write(programLogFD, *err, 4096);
+ }
}
close(pipefd[0]);