diff options
author | Jim Meyering <jim@meyering.net> | 2000-07-31 18:30:21 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-07-31 18:30:21 +0000 |
commit | 8baafe1f08034a26072b17b4b485e592edf9a0e2 (patch) | |
tree | 1533cb0309c6c1cbf6c7ab65400e6368c05a52c1 /lib/quotearg.c | |
parent | 07e017182654d726e761302dfcc8a84181e6674a (diff) | |
download | coreutils-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.c | 4 |
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) { |