1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 20:16:36 +02:00

Fix some compiler warnings from not checking chdir.

This commit is contained in:
Sadie Powell
2024-11-07 19:34:46 +00:00
parent 51827b94ad
commit 1393518555
2 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -427,7 +427,7 @@ bool Anope::Init(int ac, char **av)
/* Chdir to Anope data directory. */
Log() << "Moving to " << Anope::ServicesDir;
if (chdir(Anope::ServicesDir.c_str()) < 0)
if (chdir(Anope::ServicesDir.c_str()) != 0)
{
throw CoreException("Unable to chdir to " + Anope::ServicesDir + ": " + Anope::LastError());
}