diff options
author | Pablo Barciela <[email protected]> | 2019-06-14 09:30:32 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-20 00:07:37 +0200 |
commit | 25ffc1e58eeb5c2faef66eba1ac58bf0ac19ff67 (patch) | |
tree | 2a79eb2b3fe44cf6b49ec1b2bf23092cbef5d6a1 /src/caja-history-sidebar.c | |
parent | ed722a990406ce48b353c5eb7499fa8662cdff12 (diff) | |
download | caja-25ffc1e58eeb5c2faef66eba1ac58bf0ac19ff67.tar.bz2 caja-25ffc1e58eeb5c2faef66eba1ac58bf0ac19ff67.tar.xz |
src: reduce the scope of some variables
Diffstat (limited to 'src/caja-history-sidebar.c')
-rw-r--r-- | src/caja-history-sidebar.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/caja-history-sidebar.c b/src/caja-history-sidebar.c index fe224ed6..781008b1 100644 --- a/src/caja-history-sidebar.c +++ b/src/caja-history-sidebar.c @@ -92,11 +92,10 @@ update_history (CajaHistorySidebar *sidebar) { GtkListStore *store; GtkTreeSelection *selection; - CajaBookmark *bookmark; - cairo_surface_t *surface; GtkTreeIter iter; - char *name; GList *l, *history; + CajaBookmark *bookmark = NULL; + cairo_surface_t *surface = NULL; store = GTK_LIST_STORE (gtk_tree_view_get_model (sidebar->tree_view)); @@ -105,6 +104,8 @@ update_history (CajaHistorySidebar *sidebar) history = caja_window_info_get_history (sidebar->window); for (l = history; l != NULL; l = l->next) { + char *name; + bookmark = caja_bookmark_copy (l->data); surface = caja_bookmark_get_surface (bookmark, GTK_ICON_SIZE_MENU); |