Fixed missing initialisation of position variable.
authorArmin Novak <armin.novak@thincast.com>
Tue, 2 Sep 2014 07:39:25 +0000 (09:39 +0200)
committerArmin Novak <armin.novak@thincast.com>
Tue, 9 Sep 2014 14:33:05 +0000 (16:33 +0200)
winpr/libwinpr/utils/collections/BitStream.c

index 5cd4b4b..3756e63 100644 (file)
@@ -168,7 +168,7 @@ void BitDump(const char* tag, int level, const BYTE* buffer, UINT32 length, UINT
        const char* str;
        const char** strs;
        char pbuffer[64 * 8 + 1];
-       size_t pos, len = sizeof(pbuffer);
+       size_t pos = 0, len = sizeof(pbuffer);
        strs = (flags & BITDUMP_MSB_FIRST) ? BYTE_BIT_STRINGS_MSB : BYTE_BIT_STRINGS_LSB;
 
        for (i = 0; i < length; i += 8)