mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-18 18:37:07 +00:00
Valgrind fixes
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user