summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-10 12:01:23 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-10 12:01:23 +0000
commitf93dcf4fa3301f2e461db86e25c3f9cad0f585ef (patch)
treee5d0bb6ccaa3ca0139d6984c67a00831a8babc04 /src/inspircd.cpp
parent33bb24ca6ba1a71f068b79b80b6388aa39d5184d (diff)
bad_alloc is thrown by reference not by value
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4830 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 4dc8cf03c..9f38eec7e 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -967,7 +967,7 @@ int main(int argc, char** argv)
ServerInstance->Run();
DELETE(ServerInstance);
}
- catch (std::bad_alloc)
+ catch (std::bad_alloc&)
{
log(SPARSE,"You are out of memory! (got exception std::bad_alloc!)");
ServerInstance->SendError("**** OUT OF MEMORY **** We're gonna need a bigger boat!");