diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-26 18:28:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-26 18:28:56 +0300 |
commit | a12315e4ec1bb3d02a7a4d09afc450745a1784f6 (patch) | |
tree | b78e727307399dd199220c7c69bf3545d4745019 /intern/ghost | |
parent | 38bd8dcf05aa8d22cc97ba08eec4f7a4b858f696 (diff) |
use const char for return values of getenv().
Diffstat (limited to 'intern/ghost')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemPathsX11.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_SystemPathsX11.cpp b/intern/ghost/intern/GHOST_SystemPathsX11.cpp index f38b2c99867..30c45de47bc 100644 --- a/intern/ghost/intern/GHOST_SystemPathsX11.cpp +++ b/intern/ghost/intern/GHOST_SystemPathsX11.cpp @@ -65,7 +65,7 @@ const GHOST_TUns8* GHOST_SystemPathsX11::getSystemDir() const const GHOST_TUns8* GHOST_SystemPathsX11::getUserDir() const { - char* env = getenv("HOME"); + const char* env = getenv("HOME"); if(env) { return (GHOST_TUns8*) env; } else { |