Fix uninitialized variable
authorstaikos <staikos@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 17 Feb 2007 05:00:44 +0000 (05:00 +0000)
committerstaikos <staikos@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 17 Feb 2007 05:00:44 +0000 (05:00 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@19674 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/bindings/testbindings.cpp

index 8a658365e585072d059133e0a7b9746d61ecb243..c99090817926f9b88fcba38d45725193b9813de5 100644 (file)
@@ -1,3 +1,12 @@
+2007-02-16  George Staikos  <staikos@kde.org>
+
+        Reviewed by Maciej.
+
+        Fix uninitialized variable
+
+        * bindings/testbindings.cpp:
+        (myAllocate):
+
 2007-02-16  Anders Carlsson  <acarlsson@apple.com>
 
         Reviewed by Mitz.
index daa9509e59a2b3586de529056413382d52c151be..2e04f3615d08f5043eb716056703d43ea3f1529b 100644 (file)
@@ -302,6 +302,7 @@ NPObject *myAllocate ()
     newInstance->doubleValue = 666.666;
     newInstance->intValue = 1234;
     newInstance->boolValue = true;
+    newInstance->stringValue.type = NPVariantType_String;
     newInstance->stringValue.value.stringValue.UTF8Length = strlen ("Hello world");
     newInstance->stringValue.value.stringValue.UTF8Characters = strdup ("Hello world");