diff options
Diffstat (limited to 'image-sixel.c')
-rw-r--r-- | image-sixel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/image-sixel.c b/image-sixel.c index 3396a22a..e23d17f9 100644 --- a/image-sixel.c +++ b/image-sixel.c @@ -489,6 +489,9 @@ sixel_print(struct sixel_image *si, struct sixel_image *map, size_t *size) colours = si->colours; ncolours = si->ncolours; } + + if (ncolours == 0) + return (NULL); contains = xcalloc(1, ncolours); len = 8192; |