From 0b29a22c088462f2d2c0fba8363423bd2ab41f1a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 17 Jan 2009 20:23:58 +0100 Subject: conf: replaced getConfigParamValue() with config_get_string() Don't return a writable pointer. --- src/tag_id3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tag_id3.c') diff --git a/src/tag_id3.c b/src/tag_id3.c index 3bcdd9e58..9b5a3eae0 100644 --- a/src/tag_id3.c +++ b/src/tag_id3.c @@ -55,13 +55,13 @@ static id3_utf8_t * processID3FieldString (int is_id3v1, const id3_ucs4_t *ucs4, { id3_utf8_t *utf8, *utf8_stripped; id3_latin1_t *isostr; - char *encoding; + const char *encoding; if (type == TAG_ITEM_GENRE) ucs4 = id3_genre_name(ucs4); /* use encoding field here? */ if (is_id3v1 && - (encoding = getConfigParamValue(CONF_ID3V1_ENCODING))) { + (encoding = config_get_string(CONF_ID3V1_ENCODING, NULL)) != NULL) { isostr = id3_ucs4_latin1duplicate(ucs4); if (G_UNLIKELY(!isostr)) { return NULL; -- cgit v1.2.3