From: Ben Pfaff Date: Sat, 11 Oct 2008 23:51:44 +0000 (-0700) Subject: Fix warning due to unmunge() returning a const string that needs to be freed. X-Git-Tag: v0.7.1~50^2~27 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9ad85dbd3e097ea154651ae313c22b6083df7cb;p=pspp-builds.git Fix warning due to unmunge() returning a const string that needs to be freed. --- diff --git a/src/language/lexer/q2c.c b/src/language/lexer/q2c.c index 3e23390f..ea4e3481 100644 --- a/src/language/lexer/q2c.c +++ b/src/language/lexer/q2c.c @@ -376,7 +376,7 @@ id_cpy (char **cp) *dest++ = '\0'; } -static const char * +static char * unmunge (const char *s) { char *dest = xmalloc (strlen (s));