From 73b6a1d7b624c9c31fca742174cec4199416b83a Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Tue, 25 Jun 2024 17:22:46 +0100 Subject: [PATCH] test rep value explicitly --- src/vmrcli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vmrcli.c b/src/vmrcli.c index e81710c..dcf7b60 100644 --- a/src/vmrcli.c +++ b/src/vmrcli.c @@ -38,7 +38,7 @@ int main(int argc, char *argv[]) T_VBVMR_INTERFACE *vmr = &iVMR; int rep = init_voicemeeter(vmr, kind); - if (rep) + if (rep != 0) { exit(EXIT_FAILURE); } @@ -57,7 +57,7 @@ int main(int argc, char *argv[]) } rep = logout(vmr); - if (!rep) + if (rep == 0) { puts("Successfully logged out of Voicemeeter API"); return EXIT_SUCCESS;