From e347d965963962b5f00f7c3a9558a7750e08a7a5 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 2 Feb 2017 12:09:48 +0100 Subject: device: prepend pending actions list The order doesn't matter, so prepend instead of append new items to the pending-actions list. --- src/devices/nm-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index db343b333d..e383311698 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -11272,7 +11272,7 @@ nm_device_add_pending_action (NMDevice *self, const char *action, gboolean asser count++; } - priv->pending_actions = g_slist_append (priv->pending_actions, (char *) action); + priv->pending_actions = g_slist_prepend (priv->pending_actions, (char *) action); count++; _LOGD (LOGD_DEVICE, "add_pending_action (%d): '%s'", count, action); -- cgit v1.2.1