summaryrefslogtreecommitdiff
path: root/expand.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2000-06-19 21:22:44 +0000
committerPaul Smith <psmith@gnu.org>2000-06-19 21:22:44 +0000
commit1200b07866d19c9959e88e0054728453a1264611 (patch)
tree32fb96cf9f4774e02ed385228361ad31cc4bb901 /expand.c
parent267c9aad436e7c5ba2ad3f2fd18f73307bbeee94 (diff)
downloadmake-1200b07866d19c9959e88e0054728453a1264611.tar.gz
* Various fixes for problems in the 3.79.0.1 pretest.
Diffstat (limited to 'expand.c')
-rw-r--r--expand.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/expand.c b/expand.c
index b679a90b..8ada0cdf 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 <assert.h>
-#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