From: Paul Eggert Date: Thu, 18 Mar 2021 18:00:53 +0000 (-0700) Subject: argmatch: fix testing typo X-Git-Tag: v1.0~3025 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=734cacc097d99844249c5e1b73f7583648a53bf6;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index f89738061b..147069df16 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 a44aaa021a..dfdb4e3eea 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; }