summaryrefslogtreecommitdiffstats
path: root/common/xreadline.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/xreadline.c')
-rw-r--r--common/xreadline.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/xreadline.c b/common/xreadline.c
index ab43c292a..8ca72b75f 100644
--- a/common/xreadline.c
+++ b/common/xreadline.c
@@ -95,7 +95,9 @@ read_line (FILE *fp,
{
int save_errno = errno;
xfree (buffer);
- *length_of_buffer = *max_length = 0;
+ *length_of_buffer = 0;
+ if (max_length)
+ *max_length = 0;
errno = save_errno;
return -1;
}