From: Robert Pengelly Date: Sat, 18 Oct 2025 02:29:38 +0000 (+0100) Subject: Bug fixes X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=c24b7edd99fed9c07ce829037293c1878507f0f7;p=xmake.git Bug fixes --- diff --git a/read.c b/read.c index b6cc7f8..4d49ddd 100644 --- a/read.c +++ b/read.c @@ -753,6 +753,16 @@ static int read_lbuf (struct linebuf *lbuf, int set_default) { *colon = '\0'; + if (!*line) { + + /* Free the current line. */ + free (line); + + /* Make a fake all target. */ + line = xstrdup ("all"); + + } + filenames = parse_nameseq (line, sizeof (*filenames)); depstr = xstrdup (colon + 1); diff --git a/variable.c b/variable.c index 8415c60..2e4312c 100644 --- a/variable.c +++ b/variable.c @@ -133,7 +133,7 @@ static char *func_filter_out (const char *filename, unsigned long line_no, char } free (goals); - return xstrdup ("@"); + return xstrdup (""); }