]> git.sesse.net Git - vlc/blobdiff - include/vlc_messages.h
lua: Fixing a comment.
[vlc] / include / vlc_messages.h
index 7996696e3dff8a8b8b3aab0ca1cb8e63da1c1490..a8782ab46131c48c63bf1afb65fac3633f3dab0e 100644 (file)
@@ -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;
 }