[gjs/wip/xulrunner-1.9.3-rebase5: 14/26] importer: Handle JSVAL_NULL in ENUMERATE_NEXT
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/xulrunner-1.9.3-rebase5: 14/26] importer: Handle JSVAL_NULL in ENUMERATE_NEXT
- Date: Thu, 23 Sep 2010 00:05:13 +0000 (UTC)
commit 654f89c192c8053ceac21ba9b132f3915c0e0c7a
Author: Colin Walters <walters verbum org>
Date: Wed Sep 22 18:24:24 2010 -0400
importer: Handle JSVAL_NULL in ENUMERATE_NEXT
This occurs in my newer XULRunner port; not entirely sure
why, but anyways it should be a safe change.
gjs/importer.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gjs/importer.c b/gjs/importer.c
index f2d1bd1..90972dd 100644
--- a/gjs/importer.c
+++ b/gjs/importer.c
@@ -859,6 +859,9 @@ importer_new_enumerate(JSContext *context,
return JS_FALSE;
}
+ if (*state_p == JSVAL_NULL)
+ break;
+
iter = JSVAL_TO_PRIVATE(*state_p);
if (iter->index < iter->elements->len) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]