From 20604ec4af0848930fa6ee9203eba5ffc8e6fb1c Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 17 Feb 1999 12:18:12 +0000 Subject: [PATCH] Fixed zebra_close so that a NULL pointer is ignored. --- index/zebraapi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); -- 1.7.10.4