]> Savannah Git Hosting - gnulib.git/commitdiff
argmatch: fix testing typo
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 18 Mar 2021 18:00:53 +0000 (11:00 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 18 Mar 2021 18:00:53 +0000 (11:00 -0700)
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
lib/argmatch.c

index f89738061bdf41844988fe02251ca431f0f60cd2..147069df160481c4c5e8ce0d46b5186567b3df2a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2021-03-18  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <eggert@cs.ucla.edu>
 
        intprops: improve commentary
index a44aaa021a975c60318be21b6bbd794a8bd9582e..dfdb4e3eea58da1fc7f5ad92338eb114ac8935cc 100644 (file)
@@ -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;
 }