GH171: Fix compiler warning
authorCourtney Goeltzenleuchter <courtneygo@google.com>
Tue, 22 Mar 2016 22:31:34 +0000 (16:31 -0600)
committerIan Elliott <ianelliott@google.com>
Thu, 24 Mar 2016 14:57:07 +0000 (08:57 -0600)
layers/vk_layer_utils.cpp

index d44a3b2..a1ddd22 100644 (file)
@@ -579,7 +579,7 @@ static const char UTF8_DATA_BYTE_MASK = 0xC0;
 
 VkStringErrorFlags vk_string_validate(const int max_length, const char *utf8) {
     VkStringErrorFlags result = VK_STRING_ERROR_NONE;
-    int num_char_bytes;
+    int num_char_bytes = 0;
     int i, j;
 
     for (i = 0; i < max_length; i++) {