summaryrefslogtreecommitdiff
path: root/fxbarcode/datamatrix/BC_ErrorCorrection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxbarcode/datamatrix/BC_ErrorCorrection.cpp')
-rw-r--r--fxbarcode/datamatrix/BC_ErrorCorrection.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/fxbarcode/datamatrix/BC_ErrorCorrection.cpp b/fxbarcode/datamatrix/BC_ErrorCorrection.cpp
index 83442645e4..87dc5f6e47 100644
--- a/fxbarcode/datamatrix/BC_ErrorCorrection.cpp
+++ b/fxbarcode/datamatrix/BC_ErrorCorrection.cpp
@@ -184,7 +184,6 @@ WideString CBC_ErrorCorrection::createECCBlock(WideString codewords,
return WideString();
}
uint16_t* ecc = FX_Alloc(uint16_t, numECWords);
- memset(ecc, 0, numECWords * sizeof(uint16_t));
for (int32_t l = start; l < start + len; l++) {
uint16_t m = ecc[numECWords - 1] ^ codewords[l];
for (int32_t k = numECWords - 1; k > 0; k--) {