summaryrefslogtreecommitdiff
path: root/FL/names.h
diff options
context:
space:
mode:
Diffstat (limited to 'FL/names.h')
-rw-r--r--FL/names.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/FL/names.h b/FL/names.h
index e2072e058..33bc6caa4 100644
--- a/FL/names.h
+++ b/FL/names.h
@@ -190,7 +190,7 @@ const char * const fl_callback_reason_names[] =
\return C++ symbol of reason as a string
*/
inline std::string fl_callback_reason_str(int reason) {
- if ((reason < 0) || (reason >= FL_REASON_USER+3) || (fl_callback_reason_names[reason] == nullptr)) {
+ if ((reason < 0) || (reason >= FL_REASON_USER+3) || (fl_callback_reason_names[reason] == 0)) {
return "FL_REASON_" + std::to_string(reason);
} else {
return fl_callback_reason_names[reason];