From: Po Lu Date: Mon, 15 Nov 2021 05:43:55 +0000 (+0800) Subject: Fix xwidget-webkit-back-forward-list X-Git-Tag: emacs-29.0.90~2852^2~280 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d5a4772712334851921e0c11326b27b3744f9f04;p=emacs.git Fix xwidget-webkit-back-forward-list * src/xwidget.c (Fxwidget_webkit_back_forward_list): Use correct list variable in loop. --- 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);