Fixed config set command

pull/57/head
parent 10e5605356
commit 9216c85863
No known key found for this signature in database
GPG Key ID: FF1D842BF4DDE92B

@ -817,7 +817,8 @@ config_str yon_config_get_all_keys_no_ignored(int *size){
int yon_config_set(char *key, void *data){ int yon_config_set(char *key, void *data){
check_config{ check_config{
yon_config_parameter *dict = (yon_config_parameter*)yon_dictionary_get((dictionary**)&__yon__config__strings,key); yon_config_parameter *dict = (yon_config_parameter*)yon_dictionary_get((dictionary**)&__yon__config__strings,key);
dict->data=data; if (!dict) return 0;
dict->data=yon_char_new(data);
dict->flag1=1; dict->flag1=1;
if (yon_dictionary_get(&__yon_config_ignored, dict->key)){ if (yon_dictionary_get(&__yon_config_ignored, dict->key)){
__yon_config_ignored = yon_dictionary_rip(__yon_config_ignored); __yon_config_ignored = yon_dictionary_rip(__yon_config_ignored);

Loading…
Cancel
Save