Commit c75c2618 authored by rrt's avatar rrt
Browse files

[project @ 2000-04-14 16:19:43 by rrt]

Set fo->bufSize even if it's 0.
parent fd9890ec
/*
* (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
*
* $Id: setBuffering.c,v 1.7 2000/03/28 08:48:44 simonmar Exp $
* $Id: setBuffering.c,v 1.8 2000/04/14 16:19:43 rrt Exp $
*
* hSetBuffering Runtime Support
*/
......@@ -122,9 +122,9 @@ setBuffering(StgForeignPtr ptr, StgInt size)
fo->buf = malloc(size*sizeof(char));
if (fo->buf == NULL) {
return -1;
}
fo->bufSize = size;
}
}
fo->bufSize = size;
#ifndef mingw32_TARGET_OS
if (isaterm) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment