diff options
| author | Jabiertxo Arraiza Cenoz <jtx@jtx.markerlab.es> | 2018-07-25 12:08:00 +0000 |
|---|---|---|
| committer | Jabiertxo Arraiza Cenoz <jtx@jtx.markerlab.es> | 2018-07-25 12:08:00 +0000 |
| commit | 71da50844cd9aba61152c202a011665fd0bc0f30 (patch) | |
| tree | 38559c3821573acea6dc96bbf2adeae99d8fc2df /src/io/resource.cpp | |
| parent | Working on open folders on WIN (diff) | |
| download | inkscape-71da50844cd9aba61152c202a011665fd0bc0f30.tar.gz inkscape-71da50844cd9aba61152c202a011665fd0bc0f30.zip | |
Fix a win compiling bug and coding style
Diffstat (limited to 'src/io/resource.cpp')
| -rw-r--r-- | src/io/resource.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/io/resource.cpp b/src/io/resource.cpp index 9f584f58c..83772dd5d 100644 --- a/src/io/resource.cpp +++ b/src/io/resource.cpp @@ -105,8 +105,8 @@ gchar *_get_path(Domain domain, Type type, char const *filename) path = profile_path(name); } break; } - - + + if (filename && path) { gchar *temp=g_build_filename(path, filename, NULL); g_free(path); @@ -425,7 +425,8 @@ char *profile_path(const char *filename) int problem = errno; g_warning("Unable to create profile directory (%s) (%d)", g_strerror(problem), problem); } else { - gchar const *userDirs[] = {"keys", "templates", "icons", "extensions", "ui", "symbols", "themes", "palettes", nullptr}; + gchar const *userDirs[] = { "keys", "templates", "icons", "extensions", "ui", + "symbols", "themes", "palettes", nullptr }; for (gchar const** name = userDirs; *name; ++name) { gchar *dir = g_build_filename(prefdir, *name, NULL); g_mkdir_with_parents(dir, mode); |
