mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Valgrind fixes
This commit is contained in:
parent
a388575c8d
commit
f1a60e5e51
@ -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…
Reference in New Issue
Block a user