X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzebraapi.c;h=30cf988ba7a4d5d2b5ca25659e2dc94af0b796ee;hb=20604ec4af0848930fa6ee9203eba5ffc8e6fb1c;hp=fb7bc5785053721bf6856cd053b859f3c8f3e370;hpb=3c5f6226f97612c0d6ac40591f600587c5ffa858;p=idzebra-moved-to-github.git diff --git a/index/zebraapi.c b/index/zebraapi.c index fb7bc57..30cf988 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: zebraapi.c,v $ - * Revision 1.14 1999-02-02 14:51:11 adam + * Revision 1.15 1999-02-17 12:18:12 adam + * Fixed zebra_close so that a NULL pointer is ignored. + * + * Revision 1.14 1999/02/02 14:51:11 adam * Updated WIN32 code specific sections. Changed header. * * Revision 1.13 1998/12/16 12:23:30 adam @@ -216,6 +219,8 @@ ZebraHandle zebra_open (const char *configName) void zebra_close (ZebraHandle zh) { + if (!zh) + return; if (zh->records) { resultSetDestroy (zh);