From 05d3be79cdca1808d10b29afceb6f4c6481d5f03 Mon Sep 17 00:00:00 2001 From: dtrg Date: Sun, 23 Jul 2006 19:38:13 +0000 Subject: [PATCH] Removed a really unpleasant test for whether a pointer points at a string constant or not by comparing it with 'end', which presumably points at the top of the BSS. In fact, on Linux it evaluates to NULL, and on OSX it doesn't exist at all, so it appears to be unnecessary. --- util/ncgg/subr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/util/ncgg/subr.c b/util/ncgg/subr.c index 60caad8f3..90bf44eb2 100644 --- a/util/ncgg/subr.c +++ b/util/ncgg/subr.c @@ -281,15 +281,13 @@ setallreg(vi) struct varinfo *vi; { freevi(vip) register struct varinfo *vip; { register i; - extern char *end; if (vip==0) return; freevi(vip->vi_next); freevi(vip->vi_vi); for (i=0;ivi_str[i]>end) - free((char *) vip->vi_str[i]); + free((char *) vip->vi_str[i]); free(vip); }