svnno****@sourc*****
svnno****@sourc*****
2016年 2月 23日 (火) 21:46:52 JST
Revision: 6316 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6316 Author: doda Date: 2016-02-23 21:46:51 +0900 (Tue, 23 Feb 2016) Log Message: ----------- if文で、実行コマンドが無い時は条件が偽でもエラーとなるようにした。 https://osdn.jp/ticket/browse.php?group_id=1412&tid=35277 [Ttssh2-devel 2896] Modified Paths: -------------- trunk/teraterm/ttpmacro/ttl.c -------------- next part -------------- Modified: trunk/teraterm/ttpmacro/ttl.c =================================================================== --- trunk/teraterm/ttpmacro/ttl.c 2016-02-22 18:15:40 UTC (rev 6315) +++ trunk/teraterm/ttpmacro/ttl.c 2016-02-23 12:46:51 UTC (rev 6316) @@ -2936,7 +2936,9 @@ if (Val==0) ElseFlag = 1; // Skip until 'Else' or 'EndIf' } - else { // single line lf command + else { // single line If command + if (!CheckParameterGiven()) + return ErrSyntax; if (Val==0) return 0; LinePtr = Tmp;