[MPlayer-cvslog] r37665 - trunk/stream/stream_pvr.c
reimar
subversion at mplayerhq.hu
Wed Feb 10 23:14:33 CET 2016
Author: reimar
Date: Wed Feb 10 23:14:33 2016
New Revision: 37665
Log:
stream_pvr.c: use safer argument.
Requesting a minimum size of 0 is safer,
even though the FFMAX should avoid it causing
a negative argument to calloc.
Avoids a (kind of) false-positive Coverity warning.
Modified:
trunk/stream/stream_pvr.c
Modified: trunk/stream/stream_pvr.c
==============================================================================
--- trunk/stream/stream_pvr.c Wed Feb 10 23:14:32 2016 (r37664)
+++ trunk/stream/stream_pvr.c Wed Feb 10 23:14:33 2016 (r37665)
@@ -443,7 +443,7 @@ parse_setup_stationlist (struct pvr_t *p
return -1;
}
- if (copycreate_stationlist (&(pvr->stationlist), -1) < 0)
+ if (copycreate_stationlist (&(pvr->stationlist), 0) < 0)
{
mp_msg (MSGT_OPEN, MSGL_FATAL,
"%s No memory allocated for station list, giving up\n",
More information about the MPlayer-cvslog
mailing list