diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-10-09 19:04:04 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-09 19:04:04 +0000 |
commit | 1fc902fef97883f91a1ccf5bb3333ef11ed3b8fd (patch) | |
tree | abe87980b363db2ac1efa0e0ff638f4b0b70b42f /fxbarcode/datamatrix | |
parent | 7fb895f623e607a3c3b26b2caca0b15a0ef6947c (diff) | |
download | pdfium-1fc902fef97883f91a1ccf5bb3333ef11ed3b8fd.tar.xz |
Kill off some memset()s following FX_Alloc()
Change-Id: I92aa74c86aef890fcb991f039b9707d680fdb83c
Reviewed-on: https://pdfium-review.googlesource.com/c/43652
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxbarcode/datamatrix')
-rw-r--r-- | fxbarcode/datamatrix/BC_ErrorCorrection.cpp | 1 |
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--) { |