[vlc-commits] codec/svcdsub: use NULL instead of integer literal in pointer assignment

Filip Roséen git at videolan.org
Mon Mar 20 14:36:51 CET 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Mon Mar 20 14:13:14 2017 +0100| [5a1cea9def86c9efc8831defcf19da6def363722] | committer: Hugo Beauzée-Luyssen

codec/svcdsub: use NULL instead of integer literal in pointer assignment

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5a1cea9def86c9efc8831defcf19da6def363722
---

 modules/codec/svcdsub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/svcdsub.c b/modules/codec/svcdsub.c
index 807df03..259dced 100644
--- a/modules/codec/svcdsub.c
+++ b/modules/codec/svcdsub.c
@@ -322,7 +322,7 @@ static block_t *Reassemble( decoder_t *p_dec, block_t *p_block )
         msg_Dbg( p_dec, "subtitle packet complete, size=%zu", p_spu->i_buffer );
 
         p_sys->i_state = SUBTITLE_BLOCK_EMPTY;
-        p_sys->p_spu = 0;
+        p_sys->p_spu = NULL;
         return p_spu;
     }
 



More information about the vlc-commits mailing list