aboutsummaryrefslogtreecommitdiff
path: root/src/strlist.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/strlist.c
parented3f041df1d891b188fabfc055547c076ce6e85e (diff)
downloadstasis-4250d9bcfcf9dbc95418c64932ad39f71ff2019e.tar.gz
Use do/while in guard_* macros to make them behave more like functions
Diffstat (limited to 'src/strlist.c')
-rw-r--r--src/strlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/strlist.c b/src/strlist.c
index ac9fd82..5832802 100644
--- a/src/strlist.c
+++ b/src/strlist.c
@@ -105,13 +105,13 @@ int strlist_append_file(struct StrList *pStrList, char *_path, ReaderFn *readerF
fatal:
if (from_file_tmpdir != NULL) {
rmtree(from_file_tmpdir);
- guard_free(from_file_tmpdir)
+ guard_free(from_file_tmpdir);
}
if (filename != NULL) {
- guard_free(filename)
+ guard_free(filename);
}
if (path != NULL) {
- guard_free(path)
+ guard_free(path);
}
return retval;