[vlc-commits] log: fix theoretical pointer alignment problem
Rémi Denis-Courmont
git at videolan.org
Wed Aug 20 20:03:04 CEST 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 20 21:02:45 2014 +0300| [805cffa8d1b5fc1b1d720cef2190cffe5e73ce79] | committer: Rémi Denis-Courmont
log: fix theoretical pointer alignment problem
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=805cffa8d1b5fc1b1d720cef2190cffe5e73ce79
---
lib/log.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/log.c b/lib/log.c
index c612e87..1e5094b 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -124,7 +124,7 @@ void libvlc_set_log_verbosity( libvlc_instance_t *p_instance, unsigned level )
libvlc_log_t *libvlc_log_open( libvlc_instance_t *p_instance )
{
(void) p_instance;
- return malloc(1);
+ return malloc(sizeof(libvlc_log_t));
}
void libvlc_log_close( libvlc_log_t *p_log )
More information about the vlc-commits
mailing list