set 0 to file->flags by default

This commit is contained in:
Yuichi Nishiwaki 2014-01-16 21:00:45 +09:00
parent 94b2a68f7f
commit 73ad915fcf
1 changed files with 1 additions and 0 deletions

View File

@ -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;