From 73ad915fcfbabbb97dcbf2e53a077cea10709f2d Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Thu, 16 Jan 2014 21:00:45 +0900 Subject: [PATCH] set 0 to file->flags by default --- src/port.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/port.c b/src/port.c index d6019ac9..4241f3e8 100644 --- a/src/port.c +++ b/src/port.c @@ -104,6 +104,7 @@ pic_funopen(void *cookie, if (! file) { return NULL; } + file->flags = 0; /* no buffering at the beginning */ file->buf = NULL; file->mode = _IONBF;