diff options
author | Max Kellermann <max@duempel.org> | 2010-12-23 16:16:01 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-12-23 16:23:20 +0100 |
commit | 5462f34ed037111d2d57638352b2f1a65a322579 (patch) | |
tree | d1acf3493d2d8edbbda9ae77a327d26ae249f3f9 /src/song_save.c | |
parent | 0958ed584431ac09e676dd51925e56142416e7c2 (diff) | |
download | mpd-5462f34ed037111d2d57638352b2f1a65a322579.tar.gz mpd-5462f34ed037111d2d57638352b2f1a65a322579.tar.xz mpd-5462f34ed037111d2d57638352b2f1a65a322579.zip |
string_util: add function strchug_fast()
Replace g_strchug() calls with a cheaper implementation.
Diffstat (limited to 'src/song_save.c')
-rw-r--r-- | src/song_save.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/song_save.c b/src/song_save.c index a1a573298..d33e99c27 100644 --- a/src/song_save.c +++ b/src/song_save.c @@ -24,6 +24,7 @@ #include "directory.h" #include "tag.h" #include "text_file.h" +#include "string_util.h" #include <glib.h> @@ -96,7 +97,7 @@ song_load(FILE *fp, struct directory *parent, const char *uri, } *colon++ = 0; - value = g_strchug(colon); + value = strchug_fast_c(colon); if ((type = tag_name_parse(line)) != TAG_NUM_OF_ITEM_TYPES) { if (!song->tag) { |