mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 12:22:42 +00:00
Fix conditionals for -log and -nolog args.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5716 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
3c0743f169
commit
9dda706952
1 changed files with 2 additions and 2 deletions
|
@ -154,9 +154,9 @@ int main (int argc, const char **argv)
|
||||||
{
|
{
|
||||||
if (!argv[i])
|
if (!argv[i])
|
||||||
continue;
|
continue;
|
||||||
if (strcmp(argv[i], "-log"))
|
if (!strcmp(argv[i], "-log"))
|
||||||
writelog = true;
|
writelog = true;
|
||||||
else if (strcmp(argv[i], "-nolog"))
|
else if (!strcmp(argv[i], "-nolog"))
|
||||||
writelog = false;
|
writelog = false;
|
||||||
}
|
}
|
||||||
logfile = writelog?fopen("fteqcc.log", "wt"):false;
|
logfile = writelog?fopen("fteqcc.log", "wt"):false;
|
||||||
|
|
Loading…
Reference in a new issue