if (conf->kanjipad == NULL) conf->kanjipad = "";
void conf_save(GjitenConfig *conf) {  gchar gnomekcfg[] = "/apps/gjiten/kanjidic/";  int i;  gchar *confpath, *tmpstrg;	GConfValue *gconfList;	GSList *gconf_diclist = NULL;	GSList *diclist;	GjitenDicfile *dicfile;  gconf_client_set_string(gconf_client, "/apps/gjiten/general/version", VERSION, NULL);  //Save kanjidic display options  for (i = 0; i < KCFGNUM; i++) {     confpath = g_malloc(strlen(gnomekcfg) + strlen(kanjidicstrg[i]) + 1);    strcpy(confpath, gnomekcfg);    strcat(confpath, kanjidicstrg[i]);    gconf_client_set_bool(gconf_client, confpath, conf->kdiccfg[i], NULL);    g_free(confpath);  }    //gconf_client_set_bool(gconf_client, "/apps/gjiten/general/tooltips", conf->tooltips, NULL);  gconf_client_set_bool(gconf_client, "/apps/gjiten/general/menubar", conf->menubar, NULL);  gconf_client_set_bool(gconf_client, "/apps/gjiten/general/toolbar", conf->toolbar, NULL);  gconf_client_set_string(gconf_client, "/apps/gjiten/general/dictpath", conf->dictpath, NULL);  gconf_client_set_string(gconf_client, "/apps/gjiten/kanjidic/kanjidicfile", conf->kanjidic->path, NULL);  gconf_client_set_string(gconf_client, "/apps/gjiten/general/kanjipad", conf->kanjipad, NULL);	//Deprecated dictionary file number, zero it out.	//gconf_client_set_int(gconf_client, "/apps/gjiten/general/numofdics", conf->numofdics, NULL);	gconf_client_set_int(gconf_client, "/apps/gjiten/general/numofdics", 0, NULL);  gconf_client_set_bool(gconf_client, "/apps/gjiten/general/bigwords", conf->bigwords, NULL);  gconf_client_set_bool(gconf_client, "/apps/gjiten/general/bigkanji", conf->bigkanji, NULL);  gconf_client_set_string(gconf_client, "/apps/gjiten/general/largefont", conf->largefont, NULL);  gconf_client_set_string(gconf_client, "/apps/gjiten/general/normalfont", conf->normalfont, NULL);  gconf_client_set_bool(gconf_client, "/apps/gjiten/general/gdk_use_xft", conf->gdk_use_xft, NULL);  gconf_client_set_bool(gconf_client, "/apps/gjiten/general/force_ja_JP", conf->force_ja_JP, NULL);  gconf_client_set_bool(gconf_client, "/apps/gjiten/general/force_language_c", conf->force_language_c, NULL);  gconf_client_set_bool(gconf_client, "/apps/gjiten/general/envvar_override", conf->envvar_override, NULL);  gconf_client_set_bool(gconf_client, "/apps/gjiten/general/search_kata_on_hira", conf->search_kata_on_hira, NULL);  gconf_client_set_bool(gconf_client, "/apps/gjiten/general/search_hira_on_kata", conf->search_hira_on_kata, NULL);  //Save dicfiles [path and name seperated with linebreak]	gconfList = gconf_value_new(GCONF_VALUE_LIST);	diclist = conf->dicfile_list;	while (diclist != NULL) {		if (diclist->data == NULL) break;		dicfile = diclist->data;		tmpstrg = g_strdup_printf("%s\n%s", dicfile->path, dicfile->name);		gconf_diclist = g_slist_append(gconf_diclist, tmpstrg);		diclist = g_slist_next(diclist);	}	gconf_value_set_list_type(gconfList, GCONF_VALUE_STRING);	gconf_client_set_list(gconf_client, GCONF_PATH_GENERAL"/dictionary_list", GCONF_VALUE_STRING, gconf_diclist, NULL);}