(quotearg_n_options): Don't make the initial
authorJim Meyering <jim@meyering.net>
Mon, 31 Jul 2000 18:30:21 +0000 (18:30 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 31 Jul 2000 18:30:21 +0000 (18:30 +0000)
slot vector a constant, since it might get modified.

lib/quotearg.c

index a9c9fe3..6845894 100644 (file)
@@ -539,8 +539,8 @@ quotearg_n_options (int n, char const *arg,
       size_t size;
       char *val;
     };
-  static struct slotvec const slotvec0 = {sizeof slot0, slot0};
-  static struct slotvec *slotvec = (struct slotvec *) &slotvec0;
+  static struct slotvec slotvec0 = {sizeof slot0, slot0};
+  static struct slotvec *slotvec = &slotvec0;
 
   if (nslots <= n)
     {