• Eric Wong's avatar
    utils.c: fix xrealloc · f5c7f3da
    Eric Wong authored
    (based on suggested patch by Jan-Benedict Glaw):
    > While hacking mpd, I noticed that an assert()ion in xrealloc is wrong.
    > A null size is perfectly legal, so we shouldn't assert on that.
    
    Since some C libraries return NULL when size == 0, we'll make
    sure we get a free()-able pointer since some of those C
    libraries also barf on free(NULL).
    
    git-svn-id: https://svn.musicpd.org/mpd/trunk@4740 09075e82-0dd4-0310-85a5-a0d7c8717e4f
    f5c7f3da
Name
Last commit
Last update
doc Loading commit data...
m4 Loading commit data...
scripts Loading commit data...
src Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
TODO Loading commit data...
UPGRADING Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...