diff options
author | David Robillard <d@drobilla.net> | 2020-12-31 14:56:07 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-31 15:21:10 +0100 |
commit | 841c766d86dc35ab37c4fef8ec866d06c41bc383 (patch) | |
tree | 3959f9290e8b48f801cae52b7397eaa249c6e5cb /test/test_malloc.c | |
parent | 5ca5c874e2409b32fbdc4b46a1ba3b5a9200542f (diff) | |
download | zix-841c766d86dc35ab37c4fef8ec866d06c41bc383.tar.gz zix-841c766d86dc35ab37c4fef8ec866d06c41bc383.tar.bz2 zix-841c766d86dc35ab37c4fef8ec866d06c41bc383.zip |
Avoid "else" after "return"
Diffstat (limited to 'test/test_malloc.c')
-rw-r--r-- | test/test_malloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_malloc.c b/test/test_malloc.c index 7be62ff..1138502 100644 --- a/test/test_malloc.c +++ b/test/test_malloc.c @@ -36,7 +36,9 @@ test_malloc(size_t size) { if (in_test_malloc_init) { return NULL; // dlsym is asking for memory, but handles this fine - } else if (!test_malloc_sys_malloc) { + } + + if (!test_malloc_sys_malloc) { test_malloc_init(); } |