diff options
Diffstat (limited to 'gnu/lib/libregex/test/xmalloc.c')
-rw-r--r-- | gnu/lib/libregex/test/xmalloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/lib/libregex/test/xmalloc.c b/gnu/lib/libregex/test/xmalloc.c index 88be1a6..aa1c6c4 100644 --- a/gnu/lib/libregex/test/xmalloc.c +++ b/gnu/lib/libregex/test/xmalloc.c @@ -9,8 +9,8 @@ void * xmalloc (size) unsigned size; { - char *new_mem = malloc (size); - + char *new_mem = malloc (size); + if (new_mem == NULL) { fprintf (stderr, "xmalloc: request for %u bytes failed.\n", size); |