From 2751a98e33a4fa8cd2602b4d03cb81ebf68a83a1 Mon Sep 17 00:00:00 2001 From: "H. Utku Maden" Date: Sat, 9 Sep 2023 21:50:56 +0300 Subject: [PATCH] Fix typo that copied argv to argc. --- src/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options.c b/src/options.c index 95fdad4..c4ce357 100644 --- a/src/options.c +++ b/src/options.c @@ -24,7 +24,7 @@ MX_IMPL void mx_options_begin_r(mx_options_t *self, mx_optflag_t flags, int argc MX_ASSERT(argc > 0, "Arguments count must be greater than zero."); self->flags = flags; - self->argc = argv; + self->argv = argv; self->argc = argc; self->i = 0; self->kind = MX_OPT_END;