changeset 6528:f005f3f08277

[Accessibility] small JNI improvement, init VARIANT set to zero.
author Felipe Heidrich <felipe.heidrich@oracle.com>
date Thu, 20 Mar 2014 11:52:40 -0700
parents a0a619f9f425
children 901931021129
files modules/graphics/src/main/native-glass/win/GlassAccessible.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/native-glass/win/GlassAccessible.cpp	Thu Mar 20 14:49:25 2014 -0400
+++ b/modules/graphics/src/main/native-glass/win/GlassAccessible.cpp	Thu Mar 20 11:52:40 2014 -0700
@@ -1177,8 +1177,8 @@
   (JNIEnv *env, jclass jClass, jlong jAccessible, jint id, jobject oldV, jobject newV)
 {
     IRawElementProviderSimple* pProvider = reinterpret_cast<IRawElementProviderSimple*>(jAccessible);
-    VARIANT ov, nv;
-    
+    VARIANT ov = {0}, nv = {0};
+
     GlassAccessible::copyVariant(env, oldV, &ov);
     GlassAccessible::copyVariant(env, newV, &nv);