From: Jim Meyering Date: Mon, 31 Jul 2000 18:30:21 +0000 (+0000) Subject: (quotearg_n_options): Don't make the initial X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28c9a4add5188c044ff0bf52bef77bb204c26ef9;p=pspp (quotearg_n_options): Don't make the initial slot vector a constant, since it might get modified. --- 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) {