[gvfs] metadata: Fix bogus condition



commit 1224147b051af726c8b33f34d37ef78015ed5b95
Author: Ondrej Holy <oholy redhat com>
Date:   Wed Nov 23 18:05:20 2016 +0100

    metadata: Fix bogus condition
    
    The file->children condition is always true at this point,
    child->children should be there instead in order to speed up
    processing. This fix doesn't affect the functionality, it just
    slightly improves processing.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=757747

 metadata/metabuilder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/metadata/metabuilder.c b/metadata/metabuilder.c
index 8bb0aa3..a8c8e3e 100644
--- a/metadata/metabuilder.c
+++ b/metadata/metabuilder.c
@@ -784,7 +784,7 @@ write_children (GString *out,
          append_uint32 (out, 0, &child->metadata_pointer);
          append_time_t (out, child->last_changed, builder);
 
-          if (file->children)
+          if (child->children)
             g_queue_push_tail (files, child);
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]