mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Clear symbol->text without a constant.
This commit is contained in:
parent
02c0df93e6
commit
8851884ea1
@ -85,7 +85,7 @@ void ZBarcode_Clear(struct zint_symbol *symbol) {
|
||||
}
|
||||
symbol->rows = 0;
|
||||
symbol->width = 0;
|
||||
memset(symbol->text, 0, 128);
|
||||
memset(symbol->text, 0, sizeof(symbol->text));
|
||||
symbol->errtxt[0] = '\0';
|
||||
if (symbol->bitmap != NULL) {
|
||||
free(symbol->bitmap);
|
||||
|
Loading…
Reference in New Issue
Block a user