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.
This commit is contained in:
Emmanuele Bassi 2015-06-10 15:13:45 +01:00
parent c5dc9542d5
commit 838355afbd

View File

@ -373,7 +373,7 @@ _cogl_atlas_reserve_space (CoglAtlas *atlas,
CoglAtlasGetRectanglesData data; CoglAtlasGetRectanglesData data;
CoglRectangleMap *new_map; CoglRectangleMap *new_map;
CoglTexture2D *new_tex; CoglTexture2D *new_tex;
unsigned int map_width, map_height; unsigned int map_width = 0, map_height = 0;
CoglBool ret; CoglBool ret;
CoglRectangleMapEntry new_position; CoglRectangleMapEntry new_position;