summaryrefslogtreecommitdiffstats
path: root/isys/imount.c
diff options
context:
space:
mode:
Diffstat (limited to 'isys/imount.c')
-rw-r--r--isys/imount.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/isys/imount.c b/isys/imount.c
index 614e67ee6..fd51fdefa 100644
--- a/isys/imount.c
+++ b/isys/imount.c
@@ -146,9 +146,11 @@ 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) {
+ if (*err != NULL) {
+ rc = readFD(pipefd[0], err);
+ rc = write(programLogFD, *err, 4096);
+ }
}
close(pipefd[0]);