Skip to content

Commit

Permalink
Fixed calculate set length after checking for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitko Iliev authored and pkleef committed Apr 13, 2023
1 parent f83f66e commit db456ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsrc/Wi/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -2711,9 +2711,9 @@ repl_append_vec_entry_async (lre_queue_t *lq, client_connection_t * cli, lre_req
int inx = 0;
int plen;
query_t *qr = get_vec_query (request, key, flag, &err);
plen = dk_set_length (qr->qr_parms);
if (err)
return err;
plen = dk_set_length (qr->qr_parms);
request->lr_qr = qr;
qr_pool = request->lr_pool = mem_pool_alloc ();
qr_params_vec = request->lr_params_vec = (data_col_t**) mp_alloc_box(qr_pool, plen * sizeof (data_col_t*), DV_BIN);
Expand Down

0 comments on commit db456ad

Please sign in to comment.