Fix bug introduced by previous commit
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 27 Sep 2012 13:45:07 +0000 (15:45 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 27 Sep 2012 13:45:07 +0000 (15:45 +0200)
Improved check for client_parse_query return value.

src/session.c

index e2eda61..bb8cc7f 100644 (file)
@@ -764,7 +764,7 @@ enum pazpar2_error_code session_search(struct session *se,
             no_failed_query++;
         else if (parse_ret == -2)
             no_failed_limit++;
             no_failed_query++;
         else if (parse_ret == -2)
             no_failed_limit++;
-        else if (parse_ret)
+        else if (parse_ret < 0)
             no_working++; /* other error, such as bad CCL map */
         else
         {
             no_working++; /* other error, such as bad CCL map */
         else
         {