[gjs] importer: fix call to JS_ValueToId



commit ee502e291dfc538f467a156fec6774557026287b
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Thu Sep 18 17:03:24 2014 -0400

    importer: fix call to JS_ValueToId
    
    In a type fixup, out-return value from JS_ValueToId() was unintentionally
    lost.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736929

 gjs/importer.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gjs/importer.cpp b/gjs/importer.cpp
index fa84b01..3b163e3 100644
--- a/gjs/importer.cpp
+++ b/gjs/importer.cpp
@@ -809,9 +809,10 @@ importer_new_enumerate(JSContext  *context,
                                          &element_val))
                 return JS_FALSE;
 
-            jsid id = idp;
+            jsid id;
             if (!JS_ValueToId(context, element_val, &id))
                 return JS_FALSE;
+            idp.set(id);
 
             break;
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]