diff src/lex.l @ 1266:e1ddfb12566d

[project @ 1995-04-20 18:56:04 by jwe]
author jwe
date Thu, 20 Apr 1995 19:09:12 +0000
parents f6cca79f2721
children fd3ed8834b77
line wrap: on
line diff
--- a/src/lex.l
+++ b/src/lex.l
@@ -1339,7 +1339,11 @@
 static char *
 strip_trailing_whitespace (char *s)
 {
-  char *retval = strsave (s);
+  static char *retval = 0;
+
+  delete [] retval;
+
+  retval = strsave (s);
 
   char *t = strchr (retval, ' ');
   if (t)