Skip to content
Snippets Groups Projects
Commit 8d76f940 authored by Jim's avatar Jim
Browse files

Add null pointer check for text file

Apparently there was no check for a null pointer file name.
parent 02d408c7
No related branches found
No related tags found
No related merge requests found
......@@ -205,7 +205,7 @@ static void ft2_video_tick(void *data, float seconds)
{
struct ft2_source *srcdata = data;
if (srcdata == NULL) return;
if (!srcdata->from_file) return;
if (!srcdata->from_file || !srcdata->text_file) return;
if (os_gettime_ns() - srcdata->last_checked >= 1000000000) {
time_t t = get_modified_timestamp(srcdata->text_file);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment