[tracker] libtracker-sparql: Ensure Builder.length is not 0 when not empty
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-sparql: Ensure Builder.length is not 0 when not empty
- Date: Tue, 5 Apr 2011 15:09:50 +0000 (UTC)
commit c736a80f5a1c9baffc017374c03d02c807ec5c81
Author: Jürg Billeter <j bitron ch>
Date: Tue Apr 5 17:05:47 2011 +0200
libtracker-sparql: Ensure Builder.length is not 0 when not empty
This caused preupdate fragments from extractors to be dropped in
certain situations.
Fixes NB#237582.
src/libtracker-sparql/tracker-builder.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-sparql/tracker-builder.vala b/src/libtracker-sparql/tracker-builder.vala
index dc63c6d..a0607fb 100644
--- a/src/libtracker-sparql/tracker-builder.vala
+++ b/src/libtracker-sparql/tracker-builder.vala
@@ -674,6 +674,8 @@ public class Tracker.Sparql.Builder : Object {
public void prepend (string raw)
{
str.prepend ("%s\n".printf (raw));
+
+ length++;
}
/**
@@ -693,6 +695,8 @@ public class Tracker.Sparql.Builder : Object {
}
str.append (raw);
+
+ length++;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]