Skip to content
Snippets Groups Projects
Commit c75c2618 authored by Reuben Thomas's avatar Reuben Thomas
Browse files

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

Set fo->bufSize even if it's 0.
parent fd9890ec
No related merge requests found
/*
* (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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment