summaryrefslogtreecommitdiff
path: root/src/caja-window-pane.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-window-pane.c
parentcbd6b367e9b05c08bff88ee1cfa03c09c7ee2558 (diff)
downloadcaja-ef29013fdfd0df5d4a3cc6c5a8fb1583aabef952.tar.bz2
caja-ef29013fdfd0df5d4a3cc6c5a8fb1583aabef952.tar.xz
src: reduce the scope of some variables
Diffstat (limited to 'src/caja-window-pane.c')
-rw-r--r--src/caja-window-pane.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/caja-window-pane.c b/src/caja-window-pane.c
index 851e1795..9ad09475 100644
--- a/src/caja-window-pane.c
+++ b/src/caja-window-pane.c
@@ -43,7 +43,7 @@ static inline CajaWindowSlot *
get_first_inactive_slot (CajaWindowPane *pane)
{
GList *l;
- CajaWindowSlot *slot;
+ CajaWindowSlot *slot = NULL;
for (l = pane->slots; l != NULL; l = l->next)
{
@@ -133,8 +133,6 @@ caja_window_pane_zoom_to_default (CajaWindowPane *pane)
void
caja_window_pane_slot_close (CajaWindowPane *pane, CajaWindowSlot *slot)
{
- CajaWindowSlot *next_slot;
-
if (pane->window)
{
CajaWindow *window;
@@ -144,6 +142,8 @@ caja_window_pane_slot_close (CajaWindowPane *pane, CajaWindowSlot *slot)
g_assert (pane->active_slots != NULL);
g_assert (pane->active_slots->data == slot);
+ CajaWindowSlot *next_slot;
+
next_slot = NULL;
if (pane->active_slots->next != NULL)
{
@@ -290,8 +290,8 @@ CajaWindowSlot *
caja_window_pane_get_slot_for_content_box (CajaWindowPane *pane,
GtkWidget *content_box)
{
- CajaWindowSlot *slot;
GList *l;
+ CajaWindowSlot *slot = NULL;
for (l = pane->slots; l != NULL; l = l->next)
{