mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-20 02:05:11 -04:00
general: suppress some CodeQL warnings
CODABLOCKF: tidy some comments
This commit is contained in:
parent
174bbf06a8
commit
c11ab5528d
6 changed files with 16 additions and 17 deletions
|
@ -1904,7 +1904,7 @@ static int dm_ecc200(struct zint_symbol *symbol, struct zint_seg segs[], const i
|
|||
const int NC = W - 2 * (W / FW);
|
||||
const int NR = H - 2 * (H / FH);
|
||||
int x, y, *places;
|
||||
if (!(places = (int *) calloc(NC * NR, sizeof(int)))) {
|
||||
if (!(places = (int *) calloc((size_t) NC * (size_t) NR, sizeof(int)))) {
|
||||
return errtxt(ZINT_ERROR_MEMORY, symbol, 718, "Insufficient memory for placement array");
|
||||
}
|
||||
dm_placement(places, NR, NC);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue