]> git.sesse.net Git - vlc/commit
sout_description: fix malloc usage
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 16 Feb 2015 17:45:10 +0000 (19:45 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 16 Feb 2015 17:46:33 +0000 (19:46 +0200)
commit9b65068ef6cad297c0977b27a055a7ae09d2eb11
tree9c73cca60d12d3ee16ec7d8a89b9c11c62bd17f0
parent9e1965ad42f465e57b201b20da3463762e1eb447
sout_description: fix malloc usage

malloc(0) can return NULL. Don't use it to generate a non-NULL value
(NULL is the error code for sout_stream_t.pf_add).
modules/stream_out/description.c