commit | 7415467aee05fdd6a3f8ebee419cf0cd46ff2c8f | [log] [tgz] |
---|---|---|
author | Nguyen Anh Quynh <aquynh@gmail.com> | Tue Oct 11 16:56:20 2016 +0800 |
committer | Nguyen Anh Quynh <aquynh@gmail.com> | Tue Oct 11 16:56:20 2016 +0800 |
tree | 52dce79438f488424bd5090f27e95513e4476a24 | |
parent | eb34f6e47810be20e938ebfcba9e482cbfd99e46 [diff] |
cstool: initialize i in preprocess(). this fixes compilation issue for MSVC
diff --git a/cstool/cstool.c b/cstool/cstool.c index e1d566b..9148cb5 100644 --- a/cstool/cstool.c +++ b/cstool/cstool.c
@@ -28,7 +28,7 @@ // valid hexadecimal, and return actual length of uint8_t[] in @size. static uint8_t *preprocess(char *code, size_t *size) { - size_t i, j = 0; + size_t i = 0, j = 0; uint8_t high, low; uint8_t *result;