summaryrefslogtreecommitdiff
path: root/src/caja-window-pane.c
diff options
context:
space:
mode:
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)
{