Skip to content

Commit

Permalink
Fixed missing tCloseFile.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluescan committed Feb 18, 2019
1 parent 30459d0 commit 8c95edd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion TacitDynDns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ int main(int argc, char** argv)

if (!tFileExists(configFile))
{
tPrintf("No config file found. Default config name is TacitDynDns.cfg or specify explicitly in command line.\n\n");
tPrintf("No config file found. Default config name is TacitDynDns.cfg or specify an alternate in the command line.\n\n");
tCommand::tPrintUsage();
return 1;
}
Expand All @@ -450,6 +450,8 @@ int main(int argc, char** argv)
{
if (DynDns::Verbosity >= DynDns::eLogVerbosity::Normal)
ttfPrintf(DynDns::Log, "Error:\n%s\n", error.Message.Pod());

tSystem::tCloseFile(DynDns::Log);
return 1;
}

Expand Down

0 comments on commit 8c95edd

Please sign in to comment.