From a110c542bd7a16625f03c97e2fefa3be8da50c85 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Thu, 2 May 2019 01:09:20 +0200 Subject: libcaja-private: reduce the scope of some variables --- libcaja-private/caja-monitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libcaja-private/caja-monitor.c') diff --git a/libcaja-private/caja-monitor.c b/libcaja-private/caja-monitor.c index 2116b9d8..bd83458f 100644 --- a/libcaja-private/caja-monitor.c +++ b/libcaja-private/caja-monitor.c @@ -45,10 +45,11 @@ caja_monitor_active (void) static gboolean tried_monitor = FALSE; static gboolean monitor_success; GFileMonitor *dir_monitor; - GFile *file; if (tried_monitor == FALSE) { + GFile *file; + file = g_file_new_for_path (g_get_home_dir ()); dir_monitor = g_file_monitor_directory (file, G_FILE_MONITOR_NONE, NULL, NULL); g_object_unref (file); -- cgit v1.2.1