diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-10-05 17:38:15 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-05 17:38:15 -0700 |
commit | 36eba830fc097279f568e801b2d2a35a08004717 (patch) | |
tree | 26e2069be33a4a1c3afb44c6f1f34bcf78d84ed4 /src/directory.c | |
parent | c461fe6377836b486ad6dc6a1558a63e7c32eaa1 (diff) | |
download | mpd-36eba830fc097279f568e801b2d2a35a08004717.tar.gz mpd-36eba830fc097279f568e801b2d2a35a08004717.tar.xz mpd-36eba830fc097279f568e801b2d2a35a08004717.zip |
song: use flex arrays to store song->url
Reduce the number of allocations we make, so there's less
pressure on the allocator and less overhead to keep track
of the allocations in.
Diffstat (limited to '')
-rw-r--r-- | src/directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/directory.c b/src/directory.c index 54f1af09c..de4532e75 100644 --- a/src/directory.c +++ b/src/directory.c @@ -296,7 +296,7 @@ removeDeletedFromDirectory(char *path_max_tmp, Directory * directory) for (i = sv->nr; --i >= 0; ) { /* cleaner deletes if we go backwards */ Song *song = sv->base[i]; - if (!song || !song->url) + if (!song || !*song->url) continue; /* does this happen?, perhaps assert() */ if (dirname) |