Revision 19757f61

View differences:

libavutil/mem.c
141 141
{
142 142
    char *ptr= NULL;
143 143
    if(s){
144
    int len = strlen(s) + 1;
145
    ptr = av_malloc(len);
146
    if (ptr)
147
        memcpy(ptr, s, len);
144
        int len = strlen(s) + 1;
145
        ptr = av_malloc(len);
146
        if (ptr)
147
            memcpy(ptr, s, len);
148 148
    }
149 149
    return ptr;
150 150
}

Also available in: Unified diff