diff options
author | bptato <nincsnevem662@gmail.com> | 2021-02-18 19:37:06 +0000 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2021-02-18 19:37:06 +0000 |
commit | 728fb34e287533b406885434b0e2799dfc1d6d6a (patch) | |
tree | 4b068078f9b456d1b982e8b8bcac57d8d26f1893 | |
parent | Fix small images on kitty (diff) | |
download | w3m-728fb34e287533b406885434b0e2799dfc1d6d6a.tar.gz w3m-728fb34e287533b406885434b0e2799dfc1d6d6a.zip |
Fix potential segfault
-rw-r--r-- | terms.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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? */ |