>From 734cacc097d99844249c5e1b73f7583648a53bf6 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 18 Mar 2021 11:00:53 -0700 Subject: [PATCH] argmatch: fix testing typo Problem and fix reported by Gisle Vanem in: https://lists.gnu.org/r/bug-gnulib/2021-03/msg00083.html * lib/argmatch.c (main) [TEST]: Fix address-of typo. --- ChangeLog | 7 +++++++ lib/argmatch.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f89738061..147069df1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2021-03-18 Paul Eggert + + argmatch: fix testing typo + Problem and fix reported by Gisle Vanem in: + https://lists.gnu.org/r/bug-gnulib/2021-03/msg00083.html + * lib/argmatch.c (main) [TEST]: Fix address-of typo. + 2021-03-14 Paul Eggert intprops: improve commentary diff --git a/lib/argmatch.c b/lib/argmatch.c index a44aaa021..dfdb4e3ee 100644 --- a/lib/argmatch.c +++ b/lib/argmatch.c @@ -266,7 +266,7 @@ main (int argc, const char *const *argv) backup_args, backup_vals); printf ("The version control is '%s'\n", - ARGMATCH_TO_ARGUMENT (backup_type, backup_args, backup_vals)); + ARGMATCH_TO_ARGUMENT (&backup_type, backup_args, backup_vals)); return 0; } -- 2.27.0