aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-02-28 02:37:13 +0000
committerlloyd <[email protected]>2007-02-28 02:37:13 +0000
commit8ec6bb25c84a76985f1b696e3f4c69c421997eeb (patch)
treeba1490aeb4d57bb37305be38f8f60107a860b942
parentdb4b955da817a25f2d133667a7aa926eb7af3635 (diff)
Remove a call to abort() in global_state() which was triggered if no
global state pointer was set. Presumably I put that there for debugging at some point and let it escape.
-rw-r--r--src/libstate.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libstate.cpp b/src/libstate.cpp
index a8269a2b9..9eaa8a8b3 100644
--- a/src/libstate.cpp
+++ b/src/libstate.cpp
@@ -31,10 +31,7 @@ Library_State* global_lib_state = 0;
Library_State& global_state()
{
if(!global_lib_state)
- {
- abort();
throw Invalid_State("Library was not initialized correctly");
- }
return (*global_lib_state);
}