From 0d70d054586cf2e718aacd5fccfc47e32975b092 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 19 Jun 2000 21:22:44 +0000 Subject: * Various fixes for problems in the 3.79.0.1 pretest. --- expand.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'expand.c') diff --git a/expand.c b/expand.c index b679a90..8ada0cd 100644 --- a/expand.c +++ b/expand.c @@ -17,9 +17,10 @@ along with GNU Make; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include "make.h" + #include -#include "make.h" #include "filedef.h" #include "job.h" #include "commands.h" @@ -426,6 +427,9 @@ expand_argument (str, end) { char *tmp; + if (str == end) + return xstrdup(""); + if (!end || *end == '\0') tmp = str; else -- cgit v1.2.3