From 1f241e3cc1afb8fd3ebd1dfb95b8ddb56484dee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 14 May 2015 19:05:59 -0700 Subject: [PATCH] Cleanup. --- examples/common/bgfx_utils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/common/bgfx_utils.cpp b/examples/common/bgfx_utils.cpp index 1caf026b..540fa2df 100644 --- a/examples/common/bgfx_utils.cpp +++ b/examples/common/bgfx_utils.cpp @@ -152,12 +152,12 @@ bgfx::TextureHandle loadTexture(bx::FileReaderI* _reader, const char* _name, uin bx::ReallocatorI* allocator = entry::getAllocator(); - uint32_t size; + uint32_t size = 0; void* data = loadMem(_reader, allocator, filePath, &size); - int width; - int height; - int comp; + int width = 0; + int height = 0; + int comp = 0; uint8_t* img = NULL; img = stbi_load_from_memory( (uint8_t*)data, size, &width, &height, &comp, 4);