mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
2019-09-11 HaO E-Mail Christian Schmitz 2019-09-10: svg_plot: check for null symbol->vector.
Reason is unknown.
This commit is contained in:
parent
faeb20dcd7
commit
4dfc090416
@ -53,6 +53,11 @@ int svg_plot(struct zint_symbol *symbol) {
|
|||||||
struct zint_vector_circle *circle;
|
struct zint_vector_circle *circle;
|
||||||
struct zint_vector_string *string;
|
struct zint_vector_string *string;
|
||||||
|
|
||||||
|
/* Check for no created vector set */
|
||||||
|
/* E-Mail Christian Schmitz 2019-09-10: reason unknown */
|
||||||
|
if (symbol->vector == NULL) {
|
||||||
|
return ZINT_ERROR_INVALID_DATA;
|
||||||
|
}
|
||||||
if (symbol->output_options & BARCODE_STDOUT) {
|
if (symbol->output_options & BARCODE_STDOUT) {
|
||||||
fsvg = stdout;
|
fsvg = stdout;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user