Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-03-09 01:35:37 +0300
committerCampbell Barton <campbell@blender.org>2022-03-09 02:13:43 +0300
commit21462565632b876ac4eadf2bd30573f2fda70c76 (patch)
tree483da4fc20c4c8cc7198abd6edd5f3a53aa90b91 /source/creator
parent626c844105afc3b2455f5a1b87ac8a7839a7e0bf (diff)
Cleanup: use ELEM macro
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator_args.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c
index 736f1c34de6..6651aa77725 100644
--- a/source/creator/creator_args.c
+++ b/source/creator/creator_args.c
@@ -262,7 +262,7 @@ static int *parse_int_relative_clamp_n(
int i = 0;
while (true) {
const char *str_end = strchr(str, sep);
- if ((*str == sep) || (*str == '\0')) {
+ if (ELEM(*str, sep, '\0')) {
static const char *msg = "incorrect comma use";
*r_err_msg = msg;
goto fail;