summaryrefslogtreecommitdiff
path: root/Src/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/mapfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/Modules/mapfile.c b/Src/Modules/mapfile.c
index 2503b361e..771e5b5fc 100644
--- a/Src/Modules/mapfile.c
+++ b/Src/Modules/mapfile.c
@@ -197,8 +197,9 @@ get_contents(char *fname)
val = NULL;
if ((fd = open(fname, O_RDONLY | O_NOCTTY)) >= 0) {
LinkList ll;
+ int readerror;
- if ((ll = readoutput(fd, 1)))
+ if ((ll = readoutput(fd, 1, &readerror)))
val = peekfirst(ll);
}
#endif /* USE_MMAP */