Replace memset(0) by zero initializations.
Also remove one pointless zero initialization in rangecoder.c.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user