[vlc-commits] msg_Copy: psz_header can be NULL
Rémi Denis-Courmont
git at videolan.org
Sat May 14 15:55:11 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May 14 16:55:00 2011 +0300| [a6c58bdb7d237e1e41d254b6348fb8e3ece53495] | committer: Rémi Denis-Courmont
msg_Copy: psz_header can be NULL
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a6c58bdb7d237e1e41d254b6348fb8e3ece53495
---
include/vlc_messages.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/vlc_messages.h b/include/vlc_messages.h
index 7996696..a8782ab 100644
--- a/include/vlc_messages.h
+++ b/include/vlc_messages.h
@@ -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;
}
More information about the vlc-commits
mailing list