when compiling with CC="clang" CXX="clang++" it aborts with 


createcats.c:71:42: error: ordered comparison between pointer and zero ('char *' and 'int')
    if (fgets(buffer, sizeof(buffer), f) > 0) {
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~

This patch fixes it.

Signed-off-by: Martin Dummer <martin.dummer@gmx.net> ( 2021-02-16 )

diff -Naur vdr-plugin-epgsearch-2.2.0.orig/createcats.c vdr-plugin-epgsearch-2.2.0/createcats.c
--- vdr-plugin-epgsearch-2.2.0.orig/createcats.c	2017-05-01 21:40:19.000000000 +0200
+++ vdr-plugin-epgsearch-2.2.0/createcats.c	2021-02-27 11:59:41.175196651 +0100
@@ -65,7 +65,7 @@
 
 char *cReadLine::Read(FILE *f)
 {
-    if (fgets(buffer, sizeof(buffer), f) > 0) {
+    if (fgets(buffer, sizeof(buffer), f) != NULL) {
 	int l = strlen(buffer) - 1;
 	if (l >= 0 && buffer[l] == '\n')
 	    buffer[l] = 0;
diff -Naur vdr-plugin-epgsearch-2.2.0.orig/epgsearchext.c vdr-plugin-epgsearch-2.2.0/epgsearchext.c
--- vdr-plugin-epgsearch-2.2.0.orig/epgsearchext.c	2017-05-01 21:40:19.000000000 +0200
+++ vdr-plugin-epgsearch-2.2.0/epgsearchext.c	2021-02-27 12:01:51.502220684 +0100
@@ -1497,7 +1497,7 @@
          int line = 0;
          char buffer[MAXPARSEBUFFER];
          result = true;
-         while (fgets(buffer, sizeof(buffer), f) > 0) {
+         while (fgets(buffer, sizeof(buffer), f) != NULL) {
             line++;
             char *p = strchr(buffer, '#');
             if (p == buffer) *p = 0;
