Commit a6c58bdb authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

msg_Copy: psz_header can be NULL

parent ab4967ce
......@@ -74,7 +74,7 @@ static inline msg_item_t *msg_Copy (const msg_item_t *msg)
copy->psz_object_type = msg->psz_object_type;
copy->psz_module = strdup (msg->psz_module);
copy->psz_msg = strdup (msg->psz_msg);
copy->psz_header = strdup (msg->psz_header);
copy->psz_header = msg->psz_header ? strdup (msg->psz_header) : NULL;
return copy;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment