From 4e3fdb5b1fe80d3603a0d67a640231adcc83ab4d Mon Sep 17 00:00:00 2001 From: op Date: Mon, 27 Mar 2023 15:35:29 +0000 Subject: [PATCH] reading aid: explicitly check for memcmp() != 0; no functional change ok ratchov@ --- usr.bin/aucat/afile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1