1
0
mirror of https://git.code.sf.net/p/zint/code synced 2025-12-17 18:07:02 +00: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:
Harald Oehlmann
2019-09-11 09:51:05 +02:00
parent faeb20dcd7
commit 4dfc090416

View File

@@ -53,6 +53,11 @@ int svg_plot(struct zint_symbol *symbol) {
struct zint_vector_circle *circle;
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) {
fsvg = stdout;
} else {