Replace memset(0) by zero initializations.

Also remove one pointless zero initialization in rangecoder.c.
This commit is contained in:
Diego Biurrun
2011-06-06 14:13:02 +02:00
parent 856c8e0a04
commit a92be9b856
39 changed files with 66 additions and 144 deletions

View File

@@ -484,7 +484,7 @@ int av_parse_time(int64_t *timeval, const char *timestr, int duration)
{
const char *p;
int64_t t;
struct tm dt;
struct tm dt = { 0 };
int i;
static const char * const date_fmt[] = {
"%Y-%m-%d",
@@ -509,8 +509,6 @@ int av_parse_time(int64_t *timeval, const char *timestr, int duration)
lastch = '\0';
is_utc = (lastch == 'z' || lastch == 'Z');
memset(&dt, 0, sizeof(dt));
p = timestr;
q = NULL;
if (!duration) {