[vlc-commits] dvb: use xrealloc()

Rémi Denis-Courmont git at videolan.org
Mon Dec 21 22:10:52 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Dec 21 23:10:12 2015 +0200| [67124b22f2ecdebf9e3e4712041d6ea1f968be29] | committer: Rémi Denis-Courmont

dvb: use xrealloc()

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

 modules/access/dvb/scan.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/dvb/scan.c b/modules/access/dvb/scan.c
index f66b133..f12d015 100644
--- a/modules/access/dvb/scan.c
+++ b/modules/access/dvb/scan.c
@@ -328,7 +328,7 @@ static int ScanDvbSNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double
 
                 (*pi_count)++;
 
-                p_transponders = realloc(p_transponders, ( *pi_count + 1 ) * sizeof( scan_dvbs_transponder_t ) );
+                p_transponders = xrealloc(p_transponders, ( *pi_count + 1 ) * sizeof( scan_dvbs_transponder_t ) );
             } while (res != EOF);
 
             msg_Dbg( p_scan->p_obj, "parsed %d transponders from config", *pi_count);



More information about the vlc-commits mailing list