Merge pull request #182 from bptato/inlineimages

Fix null pointer dereference in put_image_kitty
This commit is contained in:
Tatsuya Kinoshita
2021-05-16 20:17:18 +09:00
committed by GitHub

View File

@@ -568,7 +568,7 @@ put_image_kitty(char *url, int x, int y, int w, int h, int sx, int sy, int sw,
if(!(type && !strcasecmp(type, "image/png"))) {
tmpf = Sprintf("%s/%s.png", tmp_dir, mybasename(url))->ptr;
if (!strcasecmp(type, "image/gif")) {
if (type && !strcasecmp(type, "image/gif")) {
is_anim = 1;
} else {
is_anim = 0;