From 28c9a4add5188c044ff0bf52bef77bb204c26ef9 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 31 Jul 2000 18:30:21 +0000 Subject: [PATCH] (quotearg_n_options): Don't make the initial slot vector a constant, since it might get modified. --- lib/quotearg.c | 4 ++-- 1 file 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) { -- 2.30.2