summaryrefslogtreecommitdiff
path: root/core/error_macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/error_macros.h')
-rw-r--r--core/error_macros.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/core/error_macros.h b/core/error_macros.h
index 83f92129a5..eb2cc5215d 100644
--- a/core/error_macros.h
+++ b/core/error_macros.h
@@ -48,16 +48,12 @@ typedef void (*ErrorHandlerFunc)(void *, const char *, const char *, int p_line,
struct ErrorHandlerList {
- ErrorHandlerFunc errfunc;
- void *userdata;
+ ErrorHandlerFunc errfunc = nullptr;
+ void *userdata = nullptr;
- ErrorHandlerList *next;
+ ErrorHandlerList *next = nullptr;
- ErrorHandlerList() {
- errfunc = 0;
- next = 0;
- userdata = 0;
- }
+ ErrorHandlerList() {}
};
void add_error_handler(ErrorHandlerList *p_handler);