mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-15 07:34:35 -04:00
Valgrind fixes
This commit is contained in:
parent
a388575c8d
commit
f1a60e5e51
2 changed files with 2 additions and 1 deletions
|
@ -1021,6 +1021,7 @@ int aztec(struct zint_symbol *symbol, unsigned char source[])
|
||||||
/* Now add the symbol descriptor */
|
/* Now add the symbol descriptor */
|
||||||
memset(desc_data,0,4);
|
memset(desc_data,0,4);
|
||||||
memset(desc_ecc,0,6);
|
memset(desc_ecc,0,6);
|
||||||
|
memset(descriptor,0,42);
|
||||||
|
|
||||||
if(compact) {
|
if(compact) {
|
||||||
/* The first 2 bits represent the number of layers minus 1 */
|
/* The first 2 bits represent the number of layers minus 1 */
|
||||||
|
|
|
@ -229,7 +229,7 @@ int code16k(struct zint_symbol *symbol, unsigned char source[])
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We have a problem with FNC1 in Code Set C to resolve */
|
/* We have a problem with FNC1 in Code Set C to resolve */
|
||||||
for(i = 0; i < read; i++) {
|
for(i = 0; i < input_length; i++) {
|
||||||
if((set[i] == 'C') && (source[i] == '[')) {
|
if((set[i] == 'C') && (source[i] == '[')) {
|
||||||
int c_count;
|
int c_count;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue