diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2010-07-06 10:43:21 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2010-07-06 10:43:21 +0400 |
commit | bb626c3963c36a47d3aff5b20c3c8659244e1ca9 (patch) | |
tree | 58f1454265b297019f5c161cf5ee6736d0283995 | |
parent | d37bae5bd1b4789aea4996027d9291edb2344aca (diff) |
give an actually existing buffer instead of potential NULL
-rw-r--r-- | source/blender/blenlib/intern/path_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c index 36348f0cbac..772782e5467 100644 --- a/source/blender/blenlib/intern/path_util.c +++ b/source/blender/blenlib/intern/path_util.c @@ -752,9 +752,9 @@ char *BLI_gethome(void) { /* else, check install dir (path containing blender.exe) */ - if(BLI_getInstallationDir(ret)) + if(BLI_getInstallationDir(dir)) { - sprintf(dir, "%s", ret, blender_version_decimal()); + sprintf(dir, "%s", dir, blender_version_decimal()); if (BLI_exists(dir)) return(dir); } |