diff options
Diffstat (limited to '')
-rw-r--r-- | src/utils.c | 6 |
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; |