aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-08-08 21:05:02 +0000
committerlloyd <[email protected]>2010-08-08 21:05:02 +0000
commit605aa5e54af7cfe6a54d15812d3047719fb53f53 (patch)
treecff600e8ef55dcef240ed45640f6aa993c41fd22 /src/libstate
parent22718fa6526bf5c9923d0091d662cd2def75c605 (diff)
Fix return value for set_global_state_unless_set
Diffstat (limited to 'src/libstate')
-rw-r--r--src/libstate/global_state.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstate/global_state.cpp b/src/libstate/global_state.cpp
index 0ffb49fdc..00b71039f 100644
--- a/src/libstate/global_state.cpp
+++ b/src/libstate/global_state.cpp
@@ -62,7 +62,10 @@ bool set_global_state_unless_set(Library_State* new_state)
return false;
}
else
+ {
delete swap_global_state(new_state);
+ return true;
+ }
}
/*