Index: /trunk/ippTools/src/difftool.c
===================================================================
--- /trunk/ippTools/src/difftool.c	(revision 26180)
+++ /trunk/ippTools/src/difftool.c	(revision 26181)
@@ -383,5 +383,5 @@
     }
 
-    psString whereClause = NULL;
+    psString whereClause = psStringCopy("");
     if (psListLength(where->list)) {
         whereClause = psDBGenerateWhereConditionSQL(where, NULL);
@@ -391,5 +391,5 @@
 
     // Add condition to get only templates or only inputs
-    psString templateClause = NULL;
+    psString templateClause = psStringCopy("");
     {
         if (template) {
