From 838355afbdf4de9bd3d463b29f3a3e89d85fed2c Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 10 Jun 2015 15:13:45 +0100 Subject: [PATCH] Fix compiler warnings Initialize variables; GCC does not always catch all cases where the variables are used after being initialized, especially when it comes to out parameters. --- cogl/cogl-atlas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogl/cogl-atlas.c b/cogl/cogl-atlas.c index b7e56797b..0fd8b7227 100644 --- a/cogl/cogl-atlas.c +++ b/cogl/cogl-atlas.c @@ -373,7 +373,7 @@ _cogl_atlas_reserve_space (CoglAtlas *atlas, CoglAtlasGetRectanglesData data; CoglRectangleMap *new_map; CoglTexture2D *new_tex; - unsigned int map_width, map_height; + unsigned int map_width = 0, map_height = 0; CoglBool ret; CoglRectangleMapEntry new_position;