X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FUtils%2FFolders.cpp;h=2183c51767f1570839e514fc73b0c4b81e8ea7e8;hb=0aab437dc560d2afa982e61cc2547756ad7b0761;hp=2bf9bdad0ed429d6f869481f702934141b538e6d;hpb=8b6e8f3ad7390309795eb35c0959264cb7924402;p=lugaru.git diff --git a/Source/Utils/Folders.cpp b/Source/Utils/Folders.cpp index 2bf9bda..2183c51 100644 --- a/Source/Utils/Folders.cpp +++ b/Source/Utils/Folders.cpp @@ -1,6 +1,6 @@ /* Copyright (C) 2003, 2010 - Wolfire Games -Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file) +Copyright (C) 2010-2017 - Lugaru contributors (see AUTHORS file) This file is part of Lugaru. @@ -106,11 +106,13 @@ std::string Folders::getGenericDirectory(const char* ENVVAR, const std::string& const char* Folders::getHomeDirectory() { const char* homedir = getenv("HOME"); - if (homedir != NULL) + if (homedir != NULL) { return homedir; + } struct passwd* pw = getpwuid(getuid()); - if (pw != NULL) + if (pw != NULL) { return pw->pw_dir; + } return NULL; } #endif