summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-debug-log.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-05-02 01:09:20 +0200
committerraveit65 <[email protected]>2019-05-06 13:53:37 +0200
commita110c542bd7a16625f03c97e2fefa3be8da50c85 (patch)
tree7af078f9084b33eb0d5df7f3657a1f8049ff6b83 /libcaja-private/caja-debug-log.c
parent476f56a25be636970b336d525a7766b6d1eb3fff (diff)
downloadcaja-a110c542bd7a16625f03c97e2fefa3be8da50c85.tar.bz2
caja-a110c542bd7a16625f03c97e2fefa3be8da50c85.tar.xz
libcaja-private: reduce the scope of some variables
Diffstat (limited to 'libcaja-private/caja-debug-log.c')
-rw-r--r--libcaja-private/caja-debug-log.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libcaja-private/caja-debug-log.c b/libcaja-private/caja-debug-log.c
index 19462d34..646e7f66 100644
--- a/libcaja-private/caja-debug-log.c
+++ b/libcaja-private/caja-debug-log.c
@@ -396,8 +396,6 @@ caja_debug_log_enable_domains (const char **domains, int n_domains)
void
caja_debug_log_disable_domains (const char **domains, int n_domains)
{
- int i;
-
g_assert (domains != NULL);
g_assert (n_domains >= 0);
@@ -405,6 +403,8 @@ caja_debug_log_disable_domains (const char **domains, int n_domains)
if (domains_hash)
{
+ int i;
+
for (i = 0; i < n_domains; i++)
{
char *domain;
@@ -464,7 +464,6 @@ make_key_file_from_configuration (void)
{
GKeyFile *key_file;
struct domains_dump_closure closure;
- int num_domains;
key_file = g_key_file_new ();
@@ -472,6 +471,8 @@ make_key_file_from_configuration (void)
if (domains_hash)
{
+ int num_domains;
+
num_domains = g_hash_table_size (domains_hash);
if (num_domains != 0)
{