From d5a4772712334851921e0c11326b27b3744f9f04 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 15 Nov 2021 13:43:55 +0800 Subject: [PATCH] Fix xwidget-webkit-back-forward-list * src/xwidget.c (Fxwidget_webkit_back_forward_list): Use correct list variable in loop. --- src/xwidget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xwidget.c b/src/xwidget.c index 48927524320..aae2479134a 100644 --- a/src/xwidget.c +++ b/src/xwidget.c @@ -2506,7 +2506,7 @@ LIMIT is not specified or nil, it is treated as `50'. */) if (parent) { - for (i = 1, tem = parent; parent; parent = parent->next, ++i) + for (i = 1, tem = parent; tem; tem = tem->next, ++i) { item = tem->data; item_title = webkit_back_forward_list_item_get_title (item); @@ -2524,7 +2524,7 @@ LIMIT is not specified or nil, it is treated as `50'. */) if (parent) { - for (i = 1, tem = parent; parent; parent = parent->next, ++i) + for (i = 1, tem = parent; tem; tem = tem->next, ++i) { item = tem->data; item_title = webkit_back_forward_list_item_get_title (item); -- 2.39.2