diff options
author | Pablo Barciela <[email protected]> | 2019-05-02 01:09:20 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-20 00:04:14 +0200 |
commit | fdb2e20b29bd1d2cf6e7b1a2fb93fc52c631927f (patch) | |
tree | 1c8c8a9001e359113708688dd9c98cdee15ad85a /libcaja-private/caja-desktop-icon-file.c | |
parent | 64b7d2640fc91c28db3a16239f8fe5f6243bec26 (diff) | |
download | caja-fdb2e20b29bd1d2cf6e7b1a2fb93fc52c631927f.tar.bz2 caja-fdb2e20b29bd1d2cf6e7b1a2fb93fc52c631927f.tar.xz |
libcaja-private: reduce the scope of some variables
Diffstat (limited to 'libcaja-private/caja-desktop-icon-file.c')
-rw-r--r-- | libcaja-private/caja-desktop-icon-file.c | 6 |
1 files changed, 4 insertions, 2 deletions
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) { |