Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2017-12-02 06:01:11 +0000
committerAlexander Kurtakov2017-12-02 06:01:57 +0000
commit95367b1fc23f9ea8ca08752b75ba1cefe9ca838d (patch)
tree23631e7fa5356b05f35f7e769b0d1990e8eaa90d
parent2ec810d24f17ffb3d71751621fe6d8f0fcb0f1a6 (diff)
downloadeclipse.platform.swt-95367b1fc23f9ea8ca08752b75ba1cefe9ca838d.tar.gz
eclipse.platform.swt-95367b1fc23f9ea8ca08752b75ba1cefe9ca838d.tar.xz
eclipse.platform.swt-95367b1fc23f9ea8ca08752b75ba1cefe9ca838d.zip
Bug 510905 [Webkit2] BrowserFunction with return value back to
Javascript Fix compile to not require c99. Change-Id: I1b6ffbd3c053b33f0eec293228edb8e897cde1e2 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_extension.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_extension.c b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_extension.c
index 81abcffd73..ade8e94e15 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_extension.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_extension.c
@@ -105,7 +105,8 @@ gboolean is_js_valid(JSContextRef context, JSValueRef value) {
JSValueRef valuePtr = JSObjectGetProperty(context, object, propertyName, NULL);
JSStringRelease(propertyName);
int length = (int) JSValueToNumber(context, valuePtr, NULL);
- for (int i = 0; i < length; i++) {
+ int i;
+ for (i = 0; i < length; i++) {
const JSValueRef child = JSObjectGetPropertyAtIndex(context, object, i, NULL);
if (!is_js_valid(context, child)) {
return false;

Back to the top