Revision 31277aeb libavformat/avio.c

View differences:

libavformat/avio.c
76 76
    URLContext *uc;
77 77
    int err;
78 78

  
79
    uc = av_malloc(sizeof(URLContext) + strlen(filename) + 1);
79
    uc = av_mallocz(sizeof(URLContext) + strlen(filename) + 1);
80 80
    if (!uc) {
81 81
        err = AVERROR(ENOMEM);
82 82
        goto fail;

Also available in: Unified diff