summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/log_event.h')
-rw-r--r--sql/log_event.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/log_event.h b/sql/log_event.h
index a2b58b1e023..84025554ee9 100644
--- a/sql/log_event.h
+++ b/sql/log_event.h
@@ -5034,7 +5034,8 @@ public:
DBUG_ENTER("Incident_log_event::Incident_log_event");
DBUG_PRINT("enter", ("m_incident: %d", m_incident));
m_message.length= 0;
- if (!(m_message.str= (char*) my_malloc(msg->length+1, MYF(MY_WME))))
+ if (unlikely(!(m_message.str= (char*) my_malloc(msg->length+1,
+ MYF(MY_WME)))))
{
/* Mark this event invalid */
m_incident= INCIDENT_NONE;