chiark / gitweb /
fix compile warnings/errors
[innduct.git] / __oop-read-copy.c
index 4fffdfcc991c5da4150b528c75ca9abb7d249035..bd505c4b536a50dda4205138b89920fa0e3367b9 100644 (file)
@@ -404,7 +404,7 @@ static void *on_process(oop_source *oop, oop_read *rd, int try_read) {
       }
       assert(rd->style.nul_mode == OOP_RD_NUL_DISCARD);
       for (notnul= nul+1;
-          notnul < buf+thisrecsz && notnul == '\0';
+          notnul < buf+thisrecsz && *notnul == '\0';
           notnul++);
       thisrecsz-= (notnul-nul);
       checked= nul-buf;