Merge pull request 'Fixed config_remove_elements status changing' (#87) from YanTheKaller/libublsettings:master into master

Reviewed-on: #87
pull/89/head^2
Dmitry Razumov 1 month ago
commit e80a91e40a

@ -689,6 +689,7 @@ int yon_config_remove_elements(char *key, char *delete_target, char *divider){
if (!yon_char_is_empty(temp)){
if (!yon_char_is_empty((char*)dict->data)) free(dict->data);
dict->data = temp;
yon_config_set_status(key,1);
} else {
dict->data = NULL;
yon_config_set_status(key,-1);
@ -1098,6 +1099,7 @@ enum YON_CONFIG_SAVED_TYPE yon_config_register_default(char *key,char *config_lo
config_str yon_config_load(char *command, int *str_len){
(*str_len) = 0;
FILE *output = popen(command, "r");
char **output_strings = NULL;
output_strings = malloc(sizeof(char));

Loading…
Cancel
Save