commit fc27d6ef40d21b047438be105eaf37ff06ede81d from: Benjamin Stürz date: Thu Dec 12 23:26:05 2024 UTC make: minor fix commit - c0a8252e209c886cf5c547c0ef0a41bf48af3b80 commit + fc27d6ef40d21b047438be105eaf37ff06ede81d blob - edc5ca26c4d0b48a10dad4c5581d53cc69fcc304 blob + dc5962929df8b8441970cf1cc5f97f656fbd83a9 --- make/make.c +++ make/make.c @@ -2151,6 +2151,7 @@ FILE *file; FILE *tfile; str_t text; + assert (sc->type == SC_DIR); cpath = path; if (verbose >= 3) { @@ -2945,6 +2946,9 @@ struct scope *sc; return 0; for (sub = sc->dir->subdirs; sub != NULL; sub = sub->next) { + if (sub->type != SC_DIR) + continue; + new_prefix = parse_subdir (prefix, sub); help_files (new_prefix, sub); free (new_prefix);