Happy new year
[yaz-moved-to-github.git] / src / cqlutil.c
index 5e94a60..f3de006 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2011 Index Data
+ * Copyright (C) 1995-2012 Index Data
  * See the file LICENSE for details.
  */
 /**
@@ -21,7 +21,7 @@ void cql_fputs(const char *buf, void *client_data)
     fputs(buf, f);
 }
 
-struct cql_node *cql_node_dup (NMEM nmem, struct cql_node *cp)
+struct cql_node *cql_node_dup(NMEM nmem, struct cql_node *cp)
 {
     struct cql_node *cn = 0;
 
@@ -98,6 +98,7 @@ struct cql_node *cql_node_mk_sort(NMEM nmem, const char *index,
         p->u.sort.index = nmem_strdup(nmem, index);
     p->u.sort.modifiers = modifiers;
     p->u.sort.next = 0;
+    p->u.sort.search = 0;
     return p;
 }