summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--os/io.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/os/io.c b/os/io.c
index b94fd60..458037c 100644
--- a/os/io.c
+++ b/os/io.c
@@ -580,8 +580,10 @@ WriteToClient(ClientPtr client, int count, char *buf)
if (NULL == buf) {
flag = -1;
buf = (char *) FScalloc(1, count);
+ if (buf == NULL)
+ FatalError("WriteToClient couldn't create client buffer\n");
}
- write_to_client_internal(client, count, buf, padlength[count & 3]);
+ write_to_client_internal(client, count, buf, padlength[count & 3]);
if (flag)
FSfree(buf);
}