summaryrefslogtreecommitdiff
path: root/src/caja-spatial-window.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-spatial-window.c
parentcbd6b367e9b05c08bff88ee1cfa03c09c7ee2558 (diff)
downloadcaja-ef29013fdfd0df5d4a3cc6c5a8fb1583aabef952.tar.bz2
caja-ef29013fdfd0df5d4a3cc6c5a8fb1583aabef952.tar.xz
src: reduce the scope of some variables
Diffstat (limited to 'src/caja-spatial-window.c')
-rw-r--r--src/caja-spatial-window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/caja-spatial-window.c b/src/caja-spatial-window.c
index d840ab7f..ef04fc04 100644
--- a/src/caja-spatial-window.c
+++ b/src/caja-spatial-window.c
@@ -285,7 +285,6 @@ static void
caja_spatial_window_save_show_hidden_files_mode (CajaSpatialWindow *window,
CajaFile *viewed_file)
{
- char *show_hidden_file_setting;
CajaWindowShowHiddenFilesMode mode;
if (viewed_file == NULL) {
@@ -295,6 +294,8 @@ caja_spatial_window_save_show_hidden_files_mode (CajaSpatialWindow *window,
mode = CAJA_WINDOW (window)->details->show_hidden_files_mode;
if (mode != CAJA_WINDOW_SHOW_HIDDEN_FILES_DEFAULT) {
+ char *show_hidden_file_setting;
+
if (mode == CAJA_WINDOW_SHOW_HIDDEN_FILES_ENABLE) {
show_hidden_file_setting = "1";
} else {
@@ -650,7 +651,7 @@ location_button_clicked_callback (GtkWidget *widget,
{
CajaWindowSlot *slot;
GtkWidget *popup, *menu_item, *first_item = NULL;
- GdkPixbuf *pixbuf;
+ GdkPixbuf *pixbuf = NULL;
GFile *location;
GFile *child_location;
GMainLoop *loop;