summaryrefslogtreecommitdiff
path: root/src/cairo-sdl-surface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo-sdl-surface.c')
-rw-r--r--src/cairo-sdl-surface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-sdl-surface.c b/src/cairo-sdl-surface.c
index 800ad83a..d98566d5 100644
--- a/src/cairo-sdl-surface.c
+++ b/src/cairo-sdl-surface.c
@@ -52,7 +52,7 @@ _cairo_sdl_surface_create_internal (SDL_Surface *sdl,
cairo_sdl_surface_t *surface;
surface = malloc (sizeof (cairo_sdl_surface_t));
- if (surface == NULL)
+ if (unlikely (surface == NULL))
return _cairo_surface_create_in_error (_cairo_error (CAIRO_STATUS_NO_MEMORY));
_cairo_surface_init (&surface->base,