From 728fb34e287533b406885434b0e2799dfc1d6d6a Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 18 Feb 2021 20:37:06 +0100 Subject: Fix potential segfault --- terms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terms.c b/terms.c index 3c42275..04a1bcb 100644 --- a/terms.c +++ b/terms.c @@ -564,7 +564,7 @@ put_image_kitty(char *url, int x, int y, int w, int h, int sx, int sy, int sw, return; type = guessContentType(url); - if(!strcasecmp(type, "image/png")) { + if(type && !strcasecmp(type, "image/png")) { t = 100; } else { /* TODO: kitty +kitten icat or link imlib/gdkpixbuf? */ -- cgit v1.2.3