summaryrefslogtreecommitdiff
path: root/lib/quotearg.c
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
commit8baafe1f08034a26072b17b4b485e592edf9a0e2 (patch)
tree1533cb0309c6c1cbf6c7ab65400e6368c05a52c1 /lib/quotearg.c
parent07e017182654d726e761302dfcc8a84181e6674a (diff)
downloadcoreutils-8baafe1f08034a26072b17b4b485e592edf9a0e2.tar.xz
(quotearg_n_options): Don't make the initial
slot vector a constant, since it might get modified.
Diffstat (limited to 'lib/quotearg.c')
-rw-r--r--lib/quotearg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/quotearg.c b/lib/quotearg.c
index a9c9fe339..68458940a 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)
{