Revision 91ff05f6

View differences:

libavutil/mem.c
132 132
    diff= ((char*)ptr)[-1];
133 133
    return (char*)realloc((char*)ptr - diff, size + diff) + diff;
134 134
#else
135
    return realloc(ptr, size);
135
    return realloc(ptr, size + !size);
136 136
#endif
137 137
}
138 138

  

Also available in: Unified diff