Skip to content

Commit 0b6ed76

Browse files
committed
Fix order of arguments to calloc
1 parent e68d300 commit 0b6ed76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/createrepo-agent/command.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ command_handler(int fd, const char * path)
833833
break;
834834
}
835835

836-
cmd_ctx = calloc(sizeof(*cmd_ctx), 1);
836+
cmd_ctx = calloc(1, sizeof(*cmd_ctx));
837837
if (!cmd_ctx) {
838838
fprintf(stderr, "failed to allocate new client context\n");
839839
client_worker_free(ctx);

0 commit comments

Comments
 (0)