mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05:56 -05:00
[main] Coverity fixups
This commit is contained in:
parent
933affaa7e
commit
ad4c7fd74c
@ -364,7 +364,7 @@ signal_signalfd_cb(int fd, short event, void *arg)
|
||||
struct signalfd_siginfo info;
|
||||
int status;
|
||||
|
||||
while (read(fd, &info, sizeof(struct signalfd_siginfo)) > 0)
|
||||
while (read(fd, &info, sizeof(struct signalfd_siginfo)) == sizeof(struct signalfd_siginfo))
|
||||
{
|
||||
switch (info.ssi_signo)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user