summaryrefslogtreecommitdiff
path: root/libmenu/menu-monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmenu/menu-monitor.c')
-rw-r--r--libmenu/menu-monitor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmenu/menu-monitor.c b/libmenu/menu-monitor.c
index b57174f..ca52403 100644
--- a/libmenu/menu-monitor.c
+++ b/libmenu/menu-monitor.c
@@ -378,12 +378,13 @@ static void mate_menu_monitor_notify_unref(MenuMonitorNotify* notify)
void menu_monitor_add_notify(MenuMonitor* monitor, MenuMonitorNotifyFunc notify_func, gpointer user_data)
{
+ GSList* tmp;
MenuMonitorNotify* notify;
g_return_if_fail(monitor != NULL);
g_return_if_fail(notify_func != NULL);
- GSList* tmp = monitor->notifies;
+ tmp = monitor->notifies;
while (tmp != NULL)
{