Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Luc Peurière <jlp@nerim.net>2004-12-12 16:29:54 +0300
committerJean-Luc Peurière <jlp@nerim.net>2004-12-12 16:29:54 +0300
commitd12960dd2d44cd28959ccabaad39540e52083dc4 (patch)
tree359abb12483387f8adf483f8442aaa5b35d2cb52
parent91c3cffbcca1eb8f9090533d7d3c62bc984fe863 (diff)
fix for potential crasher. we were returning pointer to a local var
-rw-r--r--source/blender/blenlib/intern/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c
index 2bd36658abc..ea666be3e45 100644
--- a/source/blender/blenlib/intern/util.c
+++ b/source/blender/blenlib/intern/util.c
@@ -871,7 +871,7 @@ void BLI_where_am_i(char *fullname, char *name)
char* BLI_getbundle(void) {
CFURLRef bundleURL;
CFStringRef pathStr;
- char path[MAXPATHLEN];
+ static char path[MAXPATHLEN];
CFBundleRef mainBundle = CFBundleGetMainBundle();
bundleURL = CFBundleCopyBundleURL(mainBundle);