瀏覽代碼

* fixed a silly bug from r20694

git-svn-id: trunk@20852 -
Tomas Hajny 13 年之前
父節點
當前提交
2cb7b4cf0f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      compiler/options.pas

+ 2 - 2
compiler/options.pas

@@ -693,7 +693,7 @@ begin
          case opt[2] of
            '?' :
              begin
-               if More [1] = 'F' then
+               if (More <> '') and (More [1] = 'F') then
                  begin
                    FPCHelpLines := true;
                    Delete (More, 1, 1);
@@ -1253,7 +1253,7 @@ begin
            'h' :
              begin
                NoPressEnter:=true;
-               if More [1] = 'F' then
+               if (More <> '') and (More [1] = 'F') then
                  begin
                    FPCHelpLines := true;
                    Delete (More, 1, 1);