From 0c25fd96f7d077e14eac2f8579b7d5c3abfc8f78 Mon Sep 17 00:00:00 2001 From: Araki Ken Date: Sat, 27 Sep 2014 21:36:12 +0900 Subject: Show GIF (except animation GIF) correctly. --- terms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terms.c b/terms.c index dc00764..50114db 100644 --- a/terms.c +++ b/terms.c @@ -562,7 +562,7 @@ save_first_animation_frame(const char *path) if( body) { /* Graphic Control Extension */ save_gif(new_path->ptr, header, header_size, body, p - 3 - body); - break; + return new_path; } else { /* skip the first frame. */ @@ -571,7 +571,7 @@ save_first_animation_frame(const char *path) } } - return new_path; + return NULL; } void ttymode_set(int mode, int imode); -- cgit v1.2.3