conf: replaced getConfigParamValue() with config_get_string()

Don't return a writable pointer.
This commit is contained in:
Max Kellermann
2009-01-17 20:23:58 +01:00
parent 7acc62366c
commit 0b29a22c08
5 changed files with 12 additions and 9 deletions

View File

@@ -281,7 +281,7 @@ db_load(void)
foundVersion = true;
} else if (g_str_has_prefix(buffer, DIRECTORY_FS_CHARSET)) {
char *fsCharset;
char *tempCharset;
const char *tempCharset;
if (foundFsCharset)
g_error("already found fs charset in db");
@@ -289,7 +289,8 @@ db_load(void)
foundFsCharset = true;
fsCharset = &(buffer[strlen(DIRECTORY_FS_CHARSET)]);
if ((tempCharset = getConfigParamValue(CONF_FS_CHARSET))
tempCharset = config_get_string(CONF_FS_CHARSET, NULL);
if (tempCharset != NULL
&& strcmp(fsCharset, tempCharset)) {
g_message("Using \"%s\" for the "
"filesystem charset "