diff --git a/libavutil/mem.c b/libavutil/mem.c index 4e654b044c..8062ae81cb 100644 --- a/libavutil/mem.c +++ b/libavutil/mem.c @@ -140,8 +140,7 @@ void *av_mallocz(unsigned int size) char *av_strdup(const char *s) { char *ptr; - int len; - len = strlen(s) + 1; + int len = strlen(s) + 1; ptr = av_malloc(len); if (ptr) memcpy(ptr, s, len);