aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gfx/sdl-1.2/src/env.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gfx/sdl-1.2/src/env.c b/src/gfx/sdl-1.2/src/env.c
index d77503d..18cfe95 100644
--- a/src/gfx/sdl-1.2/src/env.c
+++ b/src/gfx/sdl-1.2/src/env.c
@@ -27,13 +27,7 @@ static struct
void gfx_register_sprite(struct sprite *const s)
{
- /* realloc(3) could had been used directly, but Win9x relies on
- * a C89/C90 library implementation, where calling realloc(3)
- * with a NULL pointer is undefined behaviour. */
- if (!list)
- list = malloc(sizeof *list);
- else
- list = realloc(list, (list_len + 1) * sizeof *list);
+ list = realloc(list, (list_len + 1) * sizeof *list);
if (list)
list[list_len++] = s;