aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-01-01 03:01:24 +0000
committerEric Wong <normalperson@yhbt.net>2008-01-01 03:01:24 +0000
commit6fbbc642dddcab300eff2ddffe267aed9696a1e9 (patch)
tree6b704bbdad090c908bd96ff6ab69df59461be0cd /src/utils.c
parentc75d33752af940e9b0868e31cce064faebef5fe5 (diff)
downloadmpd-6fbbc642dddcab300eff2ddffe267aed9696a1e9.tar.gz
mpd-6fbbc642dddcab300eff2ddffe267aed9696a1e9.tar.xz
mpd-6fbbc642dddcab300eff2ddffe267aed9696a1e9.zip
Revert r7111 and begin to properly fix storedPlaylist code
git-svn-id: https://svn.musicpd.org/mpd/trunk@7112 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/utils.c b/src/utils.c
index bfe3de200..e9865aa24 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -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;