]> git.notmuchmail.org Git - notmuch/blobdiff - lib/config.cc
lib/config: use g_key_file_get_string to read config values
[notmuch] / lib / config.cc
index e502858d623db091628e4945d7736c0db2d5b2cd..7a2882dea2360a87ba3bc511c0cdd3c829de20aa 100644 (file)
@@ -435,7 +435,7 @@ _notmuch_config_load_from_file (notmuch_database_t *notmuch,
        for (gchar **keys_p = keys; *keys_p; keys_p++) {
            char *absolute_key = talloc_asprintf (notmuch, "%s.%s", *grp,  *keys_p);
            char *normalized_val;
-           val = g_key_file_get_value (file, *grp, *keys_p, NULL);
+           val = g_key_file_get_string (file, *grp, *keys_p, NULL);
            if (! val) {
                status = NOTMUCH_STATUS_FILE_ERROR;
                goto DONE;