Azure IoT common library
Fork of azure_c_shared_utility by
Diff: xlogging.c
- Revision:
- 25:8507bf644fdf
- Parent:
- 20:95abdea56064
- Child:
- 27:8656a313842b
--- a/xlogging.c Thu Apr 06 14:12:06 2017 -0700 +++ b/xlogging.c Fri Apr 21 14:51:10 2017 -0700 @@ -71,7 +71,8 @@ const unsigned char* startPos = bufAsChar; /* Print the whole buffer. */ - for (size_t i = 0; i < size; i++) + size_t i = 0; + for (i = 0; i < size; i++) { /* Store the printable value of the char in the charBuf to print. */ charBuf[countbuf] = PRINTABLE(*bufAsChar);