Explorar o código

* don't mess with the command line buffers if no command line is given

git-svn-id: trunk@4828 -
florian %!s(int64=19) %!d(string=hai) anos
pai
achega
fd784931dd
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      rtl/linux/system.pp

+ 3 - 0
rtl/linux/system.pp

@@ -158,6 +158,9 @@ var
   end;
 
 begin
+  cmdline:=nil;
+  if i>=argc then
+    exit;
   GetMem(buf,ARG_MAX);
   size:=0;
   bufsize:=0;