Bug fixes
authorRobert Pengelly <robertapengelly@hotmail.com>
Sat, 18 Oct 2025 02:29:38 +0000 (03:29 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Sat, 18 Oct 2025 02:29:38 +0000 (03:29 +0100)
read.c
variable.c

diff --git a/read.c b/read.c
index b6cc7f8cbd410b533fb19082b6de0c65164bd627..4d49ddd770e72c3753c7b574a20d8ef039939aa1 100644 (file)
--- 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);
         
index 8415c601faabf98ef6de916ea5d89273a4acd779..2e4312c09bac29724de1667f2c7c3c127f3c21a3 100644 (file)
@@ -133,7 +133,7 @@ static char *func_filter_out (const char *filename, unsigned long line_no, char
     }
     
     free (goals);
-    return xstrdup ("@");
+    return xstrdup ("");
 
 }