Azure IoT common library

Dependents:   STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more

Revision:
27:8656a313842b
Parent:
21:b92006c5b9ff
Child:
45:1119d0f2c4d8
--- a/map.c	Mon May 08 10:51:21 2017 -0700
+++ b/map.c	Mon May 22 10:35:55 2017 -0700
@@ -137,9 +137,9 @@
                 }
                 else if ((result->values = Map_CloneVector((const char* const*)handleData->values, handleData->count)) == NULL)
                 {
+                    size_t i;
                     /*Codes_SRS_MAP_02_047: [If during cloning, any operation fails, then Map_Clone shall return NULL.] */
                     LogError("unable to clone values");
-                    size_t i;
                     for (i = 0; i < result->count; i++)
                     {
                         free(result->keys[i]);