[tracker/sparql-delete] SPARQL: Fix crash on deletes when using blank nodes
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/sparql-delete] SPARQL: Fix crash on deletes when using blank nodes
- Date: Tue, 9 Mar 2010 18:23:15 +0000 (UTC)
commit 2c5bf0a54e7924b41ff749fe6c57a3d1dfe7ba19
Author: Jürg Billeter <j bitron ch>
Date: Tue Mar 9 19:11:48 2010 +0100
SPARQL: Fix crash on deletes when using blank nodes
src/libtracker-data/tracker-sparql-query.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-query.vala b/src/libtracker-data/tracker-sparql-query.vala
index d6111c7..b9783bc 100644
--- a/src/libtracker-data/tracker-sparql-query.vala
+++ b/src/libtracker-data/tracker-sparql-query.vala
@@ -537,7 +537,7 @@ public class Tracker.SparqlQuery : Object {
case SparqlTokenType.INSERT:
case SparqlTokenType.DELETE:
PtrArray* ptr = execute_insert_or_delete (blank);
- if (blank) {
+ if (ptr != null) {
blank_nodes.add (ptr);
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]