From: op Date: Mon, 27 Mar 2023 15:35:29 +0000 (+0000) Subject: reading aid: explicitly check for memcmp() != 0; no functional change X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4e3fdb5b1fe80d3603a0d67a640231adcc83ab4d;p=openbsd reading aid: explicitly check for memcmp() != 0; no functional change ok ratchov@ --- 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;