summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-07-31 18:30:21 +0000
committerJim Meyering <jim@meyering.net>2000-07-31 18:30:21 +0000
commit28c9a4add5188c044ff0bf52bef77bb204c26ef9 (patch)
treec3ad3216b81b791970ae868b9759f45fa67830c6
parent4aba872bc71ff1089b5d75ec181689477d0dfb9a (diff)
downloadgnulib-28c9a4add5188c044ff0bf52bef77bb204c26ef9.tar.gz
(quotearg_n_options): Don't make the initial
slot vector a constant, since it might get modified.
-rw-r--r--lib/quotearg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/quotearg.c b/lib/quotearg.c
index a9c9fe339c..68458940af 100644
--- a/lib/quotearg.c
+++ b/lib/quotearg.c
@@ -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)
{