Skip to content

Commit

Permalink
Format the changes
Browse files Browse the repository at this point in the history
Signed-off-by: Vadym Khoptynets <vadymkh@amazon.com>
  • Loading branch information
poiuj committed May 29, 2024
1 parent 82c8d44 commit a6013d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sds.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ sds _sdsnewlen(const void *init, size_t initlen, int trymalloc) {
size_t bufsize, usable;

assert(initlen + hdrlen + 1 > initlen); /* Catch size_t overflow */
sh = trymalloc ? s_trymalloc_usable(hdrlen + initlen + 1, &bufsize) : s_malloc_usable(hdrlen + initlen + 1, &bufsize);
sh = trymalloc ? s_trymalloc_usable(hdrlen + initlen + 1, &bufsize)
: s_malloc_usable(hdrlen + initlen + 1, &bufsize);
if (sh == NULL) return NULL;
if (init == SDS_NOINIT)
init = NULL;
Expand Down

0 comments on commit a6013d2

Please sign in to comment.