Fix potential segfault

This commit is contained in:
bptato
2021-02-18 20:37:06 +01:00
parent da628ebd88
commit 728fb34e28

View File

@@ -564,7 +564,7 @@ put_image_kitty(char *url, int x, int y, int w, int h, int sx, int sy, int sw,
return; return;
type = guessContentType(url); type = guessContentType(url);
if(!strcasecmp(type, "image/png")) { if(type && !strcasecmp(type, "image/png")) {
t = 100; t = 100;
} else { } else {
/* TODO: kitty +kitten icat or link imlib/gdkpixbuf? */ /* TODO: kitty +kitten icat or link imlib/gdkpixbuf? */