mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-01 07:38:26 -04: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
1 changed files with 143 additions and 138 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue