diff --git a/rtl/inc/exeinfo.pp b/rtl/inc/exeinfo.pp index 2d2c12cf4b..25753fd912 100644 --- a/rtl/inc/exeinfo.pp +++ b/rtl/inc/exeinfo.pp @@ -1044,6 +1044,8 @@ begin fillchar(e,sizeof(e),0); e.bufsize:=sizeof(e.buf); e.filename:=fn; + if fn='' then // we don't want to read stdin + exit; assign(e.f,fn); {$I-} ofm:=filemode;