[libbluray-devel] Fixed uninitialized attach in bdj_stop()/bdj_close()
Ian Curtis
git at videolan.org
Fri Feb 8 15:20:43 CET 2013
libbluray | branch: master | Ian Curtis <i.curtis at gmail.com> | Fri Feb 8 16:17:41 2013 +0200| [70ef99e570688d7a4263554c4e3898cbe9be2fbc] | committer: hpi1
Fixed uninitialized attach in bdj_stop()/bdj_close()
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=70ef99e570688d7a4263554c4e3898cbe9be2fbc
---
src/libbluray/bdj/bdj.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index 9fb0131..4c2eafd 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -338,7 +338,7 @@ int bdj_start(BDJAVA *bdjava, unsigned title)
int bdj_stop(BDJAVA *bdjava)
{
JNIEnv *env;
- int attach;
+ int attach = 0;
jboolean status = JNI_FALSE;
jclass loader_class;
jmethodID unload_id;
@@ -376,7 +376,7 @@ int bdj_stop(BDJAVA *bdjava)
void bdj_close(BDJAVA *bdjava)
{
JNIEnv *env;
- int attach;
+ int attach = 0;
jclass shutdown_class;
jmethodID shutdown_id;
More information about the libbluray-devel
mailing list