]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
bad_alloc is thrown by reference not by value
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 10 Aug 2006 12:01:23 +0000 (12:01 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 10 Aug 2006 12:01:23 +0000 (12:01 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4830 e03df62e-2008-0410-955e-edbf42e46eb7

src/inspircd.cpp

index 4dc8cf03cf4ff78188fd19f7a83d87529218fa86..9f38eec7e4f2f96b0f84484aab865573295a91af 100644 (file)
@@ -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!");