summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-03-25 12:00:29 -0700
committerMichael Pavone <pavone@retrodev.com>2018-03-25 12:00:29 -0700
commitb6feecb6c12566e9ea826cb67701008f9e423eea (patch)
treea06db423e81d53aee66cfa0b0ca366bd57d71dc8 /util.c
parent560c8198c006c1d2eddd61329c2657160c144835 (diff)
Make sure config directory exists before trying to save config file
--HG-- branch : nuklear_ui
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.c b/util.c
index ffd970a..975932a 100644
--- a/util.c
+++ b/util.c
@@ -549,7 +549,7 @@ time_t get_modification_time(char *path)
return (time_t)wintime;
}
-int ensure_dir_exists(char *path)
+int ensure_dir_exists(const char *path)
{
if (CreateDirectory(path, NULL)) {
return 1;
@@ -703,7 +703,7 @@ time_t get_modification_time(char *path)
#endif
}
-int ensure_dir_exists(char *path)
+int ensure_dir_exists(const char *path)
{
struct stat st;
if (stat(path, &st)) {