Cleanup: Cleanup: style, use braces for GHOST (X11/SDL)

This commit is contained in:
Campbell Barton
2019-06-04 11:30:31 +10:00
parent 0dbd05ffdd
commit 935c9ab0de
29 changed files with 439 additions and 222 deletions

View File

@@ -97,8 +97,9 @@ const GHOST_TUns8 *GHOST_SystemPathsUnix::getUserDir(int version, const char *ve
else {
home = getenv("HOME");
if (home == NULL)
if (home == NULL) {
home = getpwuid(getuid())->pw_dir;
}
user_path = string(home) + "/.config/blender/" + versionstr;
}