X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fapitest.c;h=6c27a32b1b4d9ea9bcbd4e1e3f294d35e7187f8b;hb=1a57f931b61684b92a5322e18ee6e4b27a7d8c31;hp=0248f727474faf3aa59df4cdb848082fb1bd667b;hpb=3d3d0cebd23fa527a7e9d5d728e3c744acb37580;p=idzebra-moved-to-github.git diff --git a/index/apitest.c b/index/apitest.c index 0248f72..6c27a32 100644 --- a/index/apitest.c +++ b/index/apitest.c @@ -1,4 +1,4 @@ -/* $Id: apitest.c,v 1.23 2005-09-13 11:51:06 adam Exp $ +/* $Id: apitest.c,v 1.24 2006-03-31 15:58:04 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -152,7 +152,11 @@ int main (int argc, char **argv) printf ("zebras_open failed\n"); exit (1); } - zebra_select_databases (zh, 1, &base); + if (zebra_select_databases (zh, 1, &base) != ZEBRA_OK) + { + printf ("zebra_select_databases failed\n"); + exit (1); + } /* Each argument to main will be a query */ for (argno = 1; argno < argc; argno++) {