Revert r7111 and begin to properly fix storedPlaylist code

git-svn-id: https://svn.musicpd.org/mpd/trunk@7112 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Eric Wong
2008-01-01 03:01:24 +00:00
parent c75d33752a
commit 6fbbc642dd
2 changed files with 73 additions and 90 deletions

View File

@@ -121,11 +121,7 @@ unsigned long readLEuint32(const unsigned char *p)
mpd_malloc char *xstrdup(const char *s)
{
char *ret;
/* Return NULL, if s is NULL */
if(!s)
return NULL;
ret = strdup(s);
char *ret = strdup(s);
if (mpd_unlikely(!ret))
FATAL("OOM: strdup\n");
return ret;