From fdb2e20b29bd1d2cf6e7b1a2fb93fc52c631927f 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-desktop-icon-file.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libcaja-private/caja-desktop-icon-file.c') diff --git a/libcaja-private/caja-desktop-icon-file.c b/libcaja-private/caja-desktop-icon-file.c index 6cf64b3f..c8ab8754 100644 --- a/libcaja-private/caja-desktop-icon-file.c +++ b/libcaja-private/caja-desktop-icon-file.c @@ -329,11 +329,12 @@ caja_desktop_icon_file_unmount (CajaFile *file, gpointer callback_data) { CajaDesktopIconFile *desktop_file; - GMount *mount; desktop_file = CAJA_DESKTOP_ICON_FILE (file); if (desktop_file) { + GMount *mount; + mount = caja_desktop_link_get_mount (desktop_file->details->link); if (mount != NULL) { @@ -351,11 +352,12 @@ caja_desktop_icon_file_eject (CajaFile *file, gpointer callback_data) { CajaDesktopIconFile *desktop_file; - GMount *mount; desktop_file = CAJA_DESKTOP_ICON_FILE (file); if (desktop_file) { + GMount *mount; + mount = caja_desktop_link_get_mount (desktop_file->details->link); if (mount != NULL) { -- cgit v1.2.1