From dfea0749e512056fe659868bbd733b23c778a106 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Mon, 27 Mar 2023 15:35:30 +0000 Subject: 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(-) (limited to 'usr.bin/aucat') 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; -- cgit v1.2.3