diff --git a/src/eitd/xmlutil.cpp b/src/eitd/xmlutil.cpp index 5dd8add9e..9589f1250 100644 --- a/src/eitd/xmlutil.cpp +++ b/src/eitd/xmlutil.cpp @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include #include @@ -517,8 +517,7 @@ static void write_indexxml_footer(FILE *fd) void writeEventsToFile(const char *epgdir) { - struct stat my_stat; - if(stat(epgdir, &my_stat) != 0){ + if(check_dir(epgdir)){ return; }