diff options
author | marha <marha@users.sourceforge.net> | 2014-06-08 15:03:35 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2014-06-08 15:03:35 +0200 |
commit | d435b20322433b335a4fc5693cce0399a3f27b2d (patch) | |
tree | 8d96b388ee1058340a9d7c1a3c4096169ac3839f /libXfont/src/fontfile/bufio.c | |
parent | 2614b017fb8a28f360897ece66815934fd1562f5 (diff) | |
download | vcxsrv-d435b20322433b335a4fc5693cce0399a3f27b2d.tar.gz vcxsrv-d435b20322433b335a4fc5693cce0399a3f27b2d.tar.bz2 vcxsrv-d435b20322433b335a4fc5693cce0399a3f27b2d.zip |
Updated to libXfont 1.4.8
Diffstat (limited to 'libXfont/src/fontfile/bufio.c')
-rw-r--r-- | libXfont/src/fontfile/bufio.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libXfont/src/fontfile/bufio.c b/libXfont/src/fontfile/bufio.c index 34b7f3665..d8d4f2964 100644 --- a/libXfont/src/fontfile/bufio.c +++ b/libXfont/src/fontfile/bufio.c @@ -162,8 +162,10 @@ BufFileOpenWrite (int fd) setmode(fd,O_BINARY); #endif f = BufFileCreate ((char *)(long) fd, 0, BufFileRawFlush, 0, BufFileFlush); - f->bufp = f->buffer; - f->left = BUFFILESIZE; + if (f != NULL) { + f->bufp = f->buffer; + f->left = BUFFILESIZE; + } return f; } |