summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-02-19 13:19:21 +0100
committerErich Eckner <git@eckner.net>2018-02-19 13:19:21 +0100
commit1ae41e0210ebc8d529cc02dc32c831432526de14 (patch)
tree3ce32eea0183c0a2bb180c9e2675295207d6ce29
parent145f900d1a2c3ce03eb1b029c370d6c9f1588e64 (diff)
downloadMake-1ae41e0210ebc8d529cc02dc32c831432526de14.tar.xz
tools.pas: check for empty file name
-rw-r--r--tools.pas1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools.pas b/tools.pas
index 4f749d9..312cda3 100644
--- a/tools.pas
+++ b/tools.pas
@@ -109,6 +109,7 @@ end;
function tDateienMitDaten.add(neu: tDateiMitDatum): longint;
begin
result:=inherited add(neu);
+ assert(neu.name<>'','Dateiname darf nicht leer sein!');
istSortiert:=false;
end;