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:
+1
-1
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user