Merge pull request #182 from bptato/inlineimages
Fix null pointer dereference in put_image_kitty
This commit is contained in:
		
							
								
								
									
										2
									
								
								terms.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								terms.c
									
									
									
									
									
								
							| @@ -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"))) { |     if(!(type && !strcasecmp(type, "image/png"))) { | ||||||
| 	tmpf = Sprintf("%s/%s.png", tmp_dir, mybasename(url))->ptr; | 	tmpf = Sprintf("%s/%s.png", tmp_dir, mybasename(url))->ptr; | ||||||
|  |  | ||||||
| 	if (!strcasecmp(type, "image/gif")) { | 	if (type && !strcasecmp(type, "image/gif")) { | ||||||
| 	    is_anim = 1; | 	    is_anim = 1; | ||||||
| 	} else { | 	} else { | ||||||
| 	    is_anim = 0; | 	    is_anim = 0; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user