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

Filip Roséen filip at atch.se
Mon Mar 20 14:13:14 CET 2017


---
 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 807df03785..259dced2f5 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;
     }
 
-- 
2.12.0


More information about the vlc-devel mailing list