Browse Source

fixed #1349 max_matches option at libsphinxclient function sphinx_set_limits

Stanislav Klinov 10 years ago
parent
commit
78bd45c4ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/libsphinxclient/sphinxclient.c

+ 1 - 1
api/libsphinxclient/sphinxclient.c

@@ -509,7 +509,7 @@ sphinx_bool sphinx_set_limits ( sphinx_client * client, int offset, int limit, i
 
 	client->offset = offset;
 	client->limit = limit;
-	if ( max_matches>=0 )
+	if ( max_matches>0 )
 		client->max_matches = max_matches;
 	if ( cutoff>=0 )
 		client->cutoff = cutoff;