summaryrefslogtreecommitdiff
path: root/caja
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-12-21 16:38:28 +0100
committerraveit65 <[email protected]>2021-01-07 18:37:10 +0100
commit98759f7bed3768ef150dcd41f97f87cbb84be8b1 (patch)
tree9d36f1a67229a67a117c1f9583dafbe9d1b55a8b /caja
parentfacddb5353b18d19c8a5b4f62b11ac0f6e666724 (diff)
downloadengrampa-98759f7bed3768ef150dcd41f97f87cbb84be8b1.tar.bz2
engrampa-98759f7bed3768ef150dcd41f97f87cbb84be8b1.tar.xz
Remove cppcheck warnings about the variable scope can be reduced
Diffstat (limited to 'caja')
-rw-r--r--caja/caja-engrampa.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/caja/caja-engrampa.c b/caja/caja-engrampa.c
index 57b440a..ad89608 100644
--- a/caja/caja-engrampa.c
+++ b/caja/caja-engrampa.c
@@ -85,7 +85,7 @@ extract_here_callback (CajaMenuItem *item,
for (scan = files; scan; scan = scan->next) {
CajaFileInfo *file = scan->data;
- char *uri, *quoted_uri;
+ char *uri, *quoted_uri;
uri = caja_file_info_get_uri (file);
quoted_uri = g_shell_quote (uri);
@@ -106,12 +106,12 @@ extract_here_callback (CajaMenuItem *item,
static void
add_callback (CajaMenuItem *item,
- gpointer user_data)
+ gpointer user_data)
{
- GList *files, *scan;
- char *uri, *dir;
- char *quoted_uri, *quoted_dir;
- GString *cmd;
+ GList *files, *scan;
+ char *uri, *dir;
+ char *quoted_dir;
+ GString *cmd;
files = g_object_get_data (G_OBJECT (item), "files");
uri = caja_file_info_get_uri (files->data);
@@ -126,6 +126,8 @@ add_callback (CajaMenuItem *item,
g_free (quoted_dir);
for (scan = files; scan; scan = scan->next) {
+ char *quoted_uri;
+
uri = caja_file_info_get_uri (scan->data);
quoted_uri = g_shell_quote (uri);
g_string_append_printf (cmd, " %s", quoted_uri);
@@ -295,7 +297,7 @@ caja_fr_get_file_items (CajaMenuProvider *provider,
for (scan = files; scan; scan = scan->next) {
CajaFileInfo *file = scan->data;
- FileMimeInfo file_mime_info;
+ FileMimeInfo file_mime_info;
file_mime_info = get_file_mime_info (file);