summaryrefslogtreecommitdiff
path: root/src/caja-navigation-window-menus.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-06-14 09:30:32 +0200
committerZenWalker <[email protected]>2019-06-17 15:18:27 +0200
commitef29013fdfd0df5d4a3cc6c5a8fb1583aabef952 (patch)
tree51c2c4afb9259ec97ba3303591bbc8e946f277d9 /src/caja-navigation-window-menus.c
parentcbd6b367e9b05c08bff88ee1cfa03c09c7ee2558 (diff)
downloadcaja-ef29013fdfd0df5d4a3cc6c5a8fb1583aabef952.tar.bz2
caja-ef29013fdfd0df5d4a3cc6c5a8fb1583aabef952.tar.xz
src: reduce the scope of some variables
Diffstat (limited to 'src/caja-navigation-window-menus.c')
-rw-r--r--src/caja-navigation-window-menus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/caja-navigation-window-menus.c b/src/caja-navigation-window-menus.c
index 707bf2d1..847f8a3f 100644
--- a/src/caja-navigation-window-menus.c
+++ b/src/caja-navigation-window-menus.c
@@ -709,11 +709,12 @@ action_show_hide_search_callback (GtkAction *action,
else
{
CajaQuery *query;
- char *uri;
query = caja_query_editor_get_query (slot->query_editor);
if (query != NULL)
{
+ char *uri;
+
uri = caja_query_get_location (query);
if (uri != NULL)
{