summaryrefslogtreecommitdiff
path: root/usr.bin/aucat/afile.c
diff options
context:
space:
mode:
authorOmar Polo <op@cvs.openbsd.org>2023-03-27 15:35:30 +0000
committerOmar Polo <op@cvs.openbsd.org>2023-03-27 15:35:30 +0000
commitdfea0749e512056fe659868bbd733b23c778a106 (patch)
tree1c735f13b0ef4d62b46f486d607989582466a356 /usr.bin/aucat/afile.c
parent16a2a1d21970997ff1fb7f6d972f98a84fd10fe8 (diff)
reading aid: explicitly check for memcmp() != 0; no functional change
ok ratchov@
Diffstat (limited to 'usr.bin/aucat/afile.c')
-rw-r--r--usr.bin/aucat/afile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/aucat/afile.c b/usr.bin/aucat/afile.c
index 46b434e6b56..6c17746b4d6 100644
--- a/usr.bin/aucat/afile.c
+++ b/usr.bin/aucat/afile.c
@@ -365,7 +365,7 @@ afile_wav_readhdr(struct afile *f)
if (!afile_readhdr(f, &riff, sizeof(struct wav_riff)))
return 0;
if (memcmp(&riff.id, &wav_id_riff, 4) != 0 ||
- memcmp(&riff.type, &wav_id_wave, 4)) {
+ memcmp(&riff.type, &wav_id_wave, 4) != 0) {
log_puts(f->path);
log_puts(": not a .wav file\n");
return 0;