Skip to content

Commit

Permalink
Fix setting and log failed to parse command line arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
mhtvsSFrpHdE committed Dec 24, 2022
1 parent aa1949c commit 8480b8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qpp/prefetch/Source/Output/log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Setting::GetGenericResult<QString> init_getLogFilePath(int argc, QStringList arg

Setting::GetGenericResult<QString> getLogFilePath;

if (argc <= Arg::IniArgc)
if (argc < Arg::IniArgc)
{
getLogFilePath.success = false;
return getLogFilePath;
Expand Down
2 changes: 1 addition & 1 deletion qpp/prefetch/Source/Setting/setting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Setting::GetGenericResult<QString> init_getSettingFilePath(int argc, QStringList

Setting::GetGenericResult<QString> getSettingFilePath;

if (argc <= Arg::IniArgc)
if (argc < Arg::IniArgc)
{
getSettingFilePath.success = false;
return getSettingFilePath;
Expand Down

0 comments on commit 8480b8b

Please sign in to comment.