diff options
author | Sadie Powell <sadie@witchery.services> | 2024-11-07 19:34:46 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-11-07 19:34:46 +0000 |
commit | 1393518555769efebf39ffaa56508ac767dff703 (patch) | |
tree | f59f76ae6cbe3616e726374df22346f9e745bb80 /src/init.cpp | |
parent | 51827b94ad11e6fd21b661127e4036e4a211aabe (diff) |
Fix some compiler warnings from not checking chdir.
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 309bb3117..8e79bd5bb 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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()); } |