فهرست منبع

ensure that static variable is properly initialized

fysx 12 سال پیش
والد
کامیت
288b25c585
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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();