From a9df1081163c013d9ca6d58235a1f85aa4a08942 Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 4 Dec 1995 15:20:46 +0000 Subject: [PATCH] Made to work; how did this get into the repository??? --- lang/m2/m2mm/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lang/m2/m2mm/main.c b/lang/m2/m2mm/main.c index 22385cf8a..694f5b545 100644 --- a/lang/m2/m2mm/main.c +++ b/lang/m2/m2mm/main.c @@ -108,7 +108,7 @@ main(argc, argv) reserve(tkidf); print("IFLAGS ="); for (i = 1; i < nDEF; i++) { - print(" -I%s", DEFPATH[i]); + if (DEFPATH[i]) print(" -I%s", DEFPATH[i]); } print("\nM2FLAGS = %s\nMOD = %s\nSUFFIX = %s\nLIBS = %s\n", mflags, compiler, suff, llibs ? llibs : ""); init_lib(); @@ -126,7 +126,7 @@ new_file_list() register struct file_list *f; static int cnt; - if (cnt-- < 0) { + if (--cnt < 0) { p = (struct file_list *)Malloc(50*sizeof(struct file_list)); cnt = 49; } @@ -136,6 +136,7 @@ new_file_list() f->a_next = 0; f->a_idf = 0; f->a_notfound = 0; + return f; } Add(parglist, f, d, copy)