Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:antirez/sds
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Nov 26, 2019
2 parents be182cb + a3087cf commit 78df725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sds.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ sds sdsnewlen(const void *init, size_t initlen) {
unsigned char *fp; /* flags pointer. */

sh = s_malloc(hdrlen+initlen+1);
if (sh == NULL) return NULL;
if (init==SDS_NOINIT)
init = NULL;
else if (!init)
memset(sh, 0, hdrlen+initlen+1);
if (sh == NULL) return NULL;
s = (char*)sh+hdrlen;
fp = ((unsigned char*)s)-1;
switch(type) {
Expand Down

0 comments on commit 78df725

Please sign in to comment.