Skip to content

Commit

Permalink
Removing extra debugging code
Browse files Browse the repository at this point in the history
Signed-off-by: Madelyn Olson <[email protected]>
  • Loading branch information
madolson committed Oct 25, 2024
1 parent 0d7514b commit 257772e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/sds.c
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ static int sdsparsearg(const char *arg, unsigned int *len, char *dst) {
if (new_char != -1) {
if (len) (*len)++;
if (dst) {
*dst = (char) new_char;
*dst = (char)new_char;
dst++;
}
}
Expand Down
5 changes: 1 addition & 4 deletions src/unit/test_sds.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,6 @@ int test_sdsHeaderSizes(int argc, char **argv, int flags) {
return 0;
}

static sds *sdssplitargs_legacy(const char *line, int *argc);


int test_sdssplitargs(int argc, char **argv, int flags) {
UNUSED(argc);
UNUSED(argv);
Expand Down Expand Up @@ -367,7 +364,7 @@ int test_sdssplitargs(int argc, char **argv, int flags) {
sdsfreesplitres(sargv, len);

char *binary_string = "\"\\x73\\x75\\x70\\x65\\x72\\x20\\x00\\x73\\x65\\x63\\x72\\x65\\x74\\x20\\x70\\x61\\x73\\x73\\x77\\x6f\\x72\\x64\"";
sargv = sdssplitargs_legacy(binary_string, &len);
sargv = sdssplitargs(binary_string, &len);
TEST_ASSERT(1 == len);
TEST_ASSERT(22 == sdslen(sargv[0]));

Expand Down

0 comments on commit 257772e

Please sign in to comment.