aboutsummaryrefslogtreecommitdiff
path: root/src_c/common.c
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2022-06-03 00:50:12 +0200
committerbozo.kopic <bozo@kopic.xyz>2022-06-03 00:50:12 +0200
commit7ae36a21d031c3d71e9015823c61380f88b0595d (patch)
tree8fb619e30b5a7f03f7b7416343ab796f53d74aec /src_c/common.c
parentc81812414c1b55352aac2c9bdc9b7f4951f2c6ce (diff)
requirements update
Diffstat (limited to 'src_c/common.c')
-rw-r--r--src_c/common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src_c/common.c b/src_c/common.c
index 066ff5a..01df99b 100644
--- a/src_c/common.c
+++ b/src_c/common.c
@@ -406,8 +406,7 @@ int opcut_params_init(hat_allocator_t *a, opcut_params_t *params,
if (tokens_len < 0)
return OPCUT_ERROR;
- jsmntok_t *tokens =
- hat_allocator_alloc(a, tokens_len * sizeof(jsmntok_t), NULL);
+ jsmntok_t *tokens = hat_allocator_alloc(a, tokens_len * sizeof(jsmntok_t));
if (!tokens)
return OPCUT_ERROR;