diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2015-06-10 15:13:45 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2015-06-10 15:13:45 +0100 |
commit | 838355afbdf4de9bd3d463b29f3a3e89d85fed2c (patch) | |
tree | f3c0d05cf26ef5679c06e6f84edddd9d076f5b4c | |
parent | c5dc9542d5c37c98a12aa16c4ea24211c768764f (diff) | |
download | cogl-838355afbdf4de9bd3d463b29f3a3e89d85fed2c.tar.gz |
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.
-rw-r--r-- | cogl/cogl-atlas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cogl/cogl-atlas.c b/cogl/cogl-atlas.c index b7e56797..0fd8b722 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; |