summaryrefslogtreecommitdiff
path: root/core/error_macros.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/error_macros.cpp')
-rw-r--r--core/error_macros.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/error_macros.cpp b/core/error_macros.cpp
index ff50c9786a..2fae939965 100644
--- a/core/error_macros.cpp
+++ b/core/error_macros.cpp
@@ -51,10 +51,11 @@ void remove_error_handler(ErrorHandlerList *p_handler) {
while (l) {
if (l == p_handler) {
- if (prev)
+ if (prev) {
prev->next = l->next;
- else
+ } else {
error_handler_list = l->next;
+ }
break;
}
prev = l;