From 6884d4b6b57e22ff68d78a2be1d671a2c20d324a Mon Sep 17 00:00:00 2001 From: kanurag94 Date: Thu, 28 May 2020 11:26:29 +0530 Subject: [PATCH] Fix Seg fault while rendering from cli --- src/ui-hlp/render.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui-hlp/render.cpp b/src/ui-hlp/render.cpp index 4890c300..c91b8f02 100644 --- a/src/ui-hlp/render.cpp +++ b/src/ui-hlp/render.cpp @@ -165,7 +165,8 @@ int uih_renderanimation(struct uih_context *gc1, const char *basename, free(saveddata); return 0; } - uih->font = gc1->font; + if(gc1) + uih->font = gc1->font; uih->fcontext->slowmode = 1; uih_constantframetime(uih, frametime); af = xio_ropen(animation);