Merge pull request 'Fixed crash while application first startup' (#105) from YanTheKaller/ubl-settings-logging:master into master

Reviewed-on: #105
pull/139/head v2.5
Dmitry Razumov 10 months ago
commit 4a92be60cd

@ -1303,6 +1303,9 @@ int yon_file_create(char *path, char *name, int rules){
int yon_file_create_full_path(char *path, int rules){
if (path){
if (access(path,F_OK)){
char *cur_path = yon_char_new(path);
cur_path = yon_char_divide(cur_path,yon_char_find_last(cur_path,'/'));
mkdir(cur_path,0777);
FILE *fl = fopen(path,"w");
if (fl){
chmod(path,rules);

Loading…
Cancel
Save