netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/rage.git/commit/?id=d7227a74d35b4c1c25b5baa55907945c9463f269

commit d7227a74d35b4c1c25b5baa55907945c9463f269
Author: Alastair Poole <[email protected]>
Date:   Tue Jun 19 17:21:43 2018 +0100

    Fix crash: file can be NULL here.
---
 src/bin/video.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/bin/video.c b/src/bin/video.c
index 3efc0ae..eb4a056 100644
--- a/src/bin/video.c
+++ b/src/bin/video.c
@@ -1160,8 +1160,13 @@ video_file_autosub_set(Evas_Object *obj, const char 
*file, const char *sub)
           }
         if (!found) video_sub_file_set(obj, NULL);
      }
-   else video_sub_file_set(obj, sub);
-   video_file_set(obj, file);
+   else
+     {
+        video_sub_file_set(obj, sub);
+     }
+
+   if (file)
+     video_file_set(obj, file);
 }
 
 const char *

-- 


Reply via email to