Skip to content

Commit

Permalink
xchange refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Dec 9, 2024
1 parent d55c0cb commit 8b80edc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/resp.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ static XField *respArrayToXField(const char *name, const RESP **component, int n

XField *array;

f = xCreateHeterogeneous1DField(name, n);
f = xCreateMixed1DField(name, n);

if(!f->value) return x_trace_null(fn, "field array");

Expand All @@ -602,7 +602,7 @@ static XField *respArrayToXField(const char *name, const RESP **component, int n
char *array;
size_t eSize;

if(eType == X_UNKNOWN) return xCreateHeterogeneous1DField(name, 0);
if(eType == X_UNKNOWN) return xCreateMixed1DField(name, 0);

eSize = xElementSizeOf(eType);
array = (char *) calloc(1, n * eSize);
Expand Down
2 changes: 1 addition & 1 deletion test/src/test-hello.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int main() {

resp = redisxGetHelloData(redis);
json = resp2json("server_properties", resp);
printf("%s\n", json ? json : "<null>");
printf("%s", json ? json : "<null>");
redisxDestroyRESP(resp);

if(redisxGetProtocol(redis) != REDISX_RESP3) {
Expand Down

0 comments on commit 8b80edc

Please sign in to comment.