Browse Source

ensure that static variable is properly initialized

fysx 12 years ago
parent
commit
288b25c585
1 changed files with 1 additions and 1 deletions
  1. 1 1
      jni/love/src/common/android.cpp

+ 1 - 1
jni/love/src/common/android.cpp

@@ -54,7 +54,7 @@ double getScreenScale()
 
 const char* getSelectedGameFile()
 {
-  static const char *path;
+  static const char *path = NULL;
 
   if (!path) {
     JNIEnv *env = (JNIEnv*) SDL_AndroidGetJNIEnv();