forked from bartvdbraak/blender
fix for potential crasher. we were returning pointer to a local var
This commit is contained in:
parent
91c3cffbcc
commit
d12960dd2d
@ -871,7 +871,7 @@ void BLI_where_am_i(char *fullname, char *name)
|
|||||||
char* BLI_getbundle(void) {
|
char* BLI_getbundle(void) {
|
||||||
CFURLRef bundleURL;
|
CFURLRef bundleURL;
|
||||||
CFStringRef pathStr;
|
CFStringRef pathStr;
|
||||||
char path[MAXPATHLEN];
|
static char path[MAXPATHLEN];
|
||||||
CFBundleRef mainBundle = CFBundleGetMainBundle();
|
CFBundleRef mainBundle = CFBundleGetMainBundle();
|
||||||
|
|
||||||
bundleURL = CFBundleCopyBundleURL(mainBundle);
|
bundleURL = CFBundleCopyBundleURL(mainBundle);
|
||||||
|
Loading…
Reference in New Issue
Block a user