Skip to content

Commit

Permalink
use pointer instead of struct (#1591)
Browse files Browse the repository at this point in the history
Co-authored-by: Rafi Einstein <rafi@redislabs.com>
  • Loading branch information
ashtul and rafie committed Oct 1, 2020
1 parent 2907f1e commit 56864b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sortable.c
Expand Up @@ -13,7 +13,7 @@ RSSortingVector *NewSortingVector(int len) {
if (len > RS_SORTABLES_MAX) {
return NULL;
}
RSSortingVector *ret = rm_calloc(1, sizeof(RSSortingVector) + len * (sizeof(RSValue)));
RSSortingVector *ret = rm_calloc(1, sizeof(RSSortingVector) + len * (sizeof(RSValue*)));
ret->len = len;
// set all values to NIL
for (int i = 0; i < len; i++) {
Expand Down

0 comments on commit 56864b3

Please sign in to comment.