summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
Diffstat (limited to 'stream')
-rw-r--r--stream/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream.c b/stream/stream.c
index b562c56cfe..6547771111 100644
--- a/stream/stream.c
+++ b/stream/stream.c
@@ -620,7 +620,7 @@ unsigned char* stream_read_line(stream_t *s,unsigned char* mem, int max, int utf
}
s->buf_pos += len;
} while(!end);
- if(s->eof && ptr == mem) return NULL;
ptr[0] = 0;
+ if(s->eof && ptr == mem) return NULL;
return mem;
}