aboutsummaryrefslogtreecommitdiff
path: root/src/conda.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-03-10 15:13:15 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-03-10 15:13:15 -0400
commit4250d9bcfcf9dbc95418c64932ad39f71ff2019e (patch)
treea50b979c8817af4017e595928da6dc4524b37d40 /src/conda.c
parented3f041df1d891b188fabfc055547c076ce6e85e (diff)
downloadstasis-4250d9bcfcf9dbc95418c64932ad39f71ff2019e.tar.gz
Use do/while in guard_* macros to make them behave more like functions
Diffstat (limited to 'src/conda.c')
-rw-r--r--src/conda.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/conda.c b/src/conda.c
index 87b32d4..f6d1420 100644
--- a/src/conda.c
+++ b/src/conda.c
@@ -185,12 +185,12 @@ int conda_check_required() {
}
}
if (found < (sizeof(tools) / sizeof(*tools)) - 1) {
- guard_free(cmd_out)
- guard_strlist_free(result)
+ guard_free(cmd_out);
+ guard_strlist_free(result);
return 1;
}
- guard_free(cmd_out)
- guard_strlist_free(result)
+ guard_free(cmd_out);
+ guard_strlist_free(result);
} else {
msg(OMC_MSG_ERROR | OMC_MSG_L2, "The base package requirement check could not be performed\n");
return 2;