#1061619 read.c OOP_RD_NUL_DISCARD is broken

Package:
liboop4
Source:
liboop4
Description:
Event loop management library
Submitter:
Ian Jackson
Date:
2024-01-27 13:27:06 UTC
Severity:
normal
#1061619#5
Date:
2024-01-27 13:25:38 UTC
From:
To:
Fixes this compiler warning:

  read.c: In function 'on_process':
  read.c:402:38: warning: comparison between pointer and zero character constant [-Wpointer-compare]
       notnul < buf+thisrecsz && notnul == '\0';
					^~
  read.c:402:31: note: did you mean to dereference the pointer?
       notnul < buf+thisrecsz && notnul == '\0';

History of this fix: See #579604.  I am tidying up my own
program (innduct), which I find it still has a copy of this file.
Comparing the files I find this one difference.  I seem to have fixed
this bug in 2022 without noticing that I ought to be sending the fix
upstream.  So, apologies for the delay reporting this.

Patch attached.

Thanks,
Ian.