From: Adam Dickmeiss Date: Thu, 1 Feb 1996 20:50:04 +0000 (+0000) Subject: Bug fix: zebraIndexUnlock was always called even though zebraIndexLock X-Git-Tag: ZEBRA.1.0~555 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=a43a80295abc7fd1b2caecb0de0dadd3003cab41;p=idzebra-moved-to-github.git Bug fix: zebraIndexUnlock was always called even though zebraIndexLock was never called - happens when no commands are specified. --- diff --git a/index/main.c b/index/main.c index 001d99b..725aead 100644 --- a/index/main.c +++ b/index/main.c @@ -4,7 +4,11 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: main.c,v $ - * Revision 1.31 1996-01-08 19:15:46 adam + * Revision 1.32 1996-02-01 20:50:04 adam + * Bug fix: zebraIndexUnlock was always called even though zebraIndexLock + * was never called - happens when no commands are specified. + * + * Revision 1.31 1996/01/08 19:15:46 adam * New input filter that works! * * Revision 1.30 1995/12/12 16:00:59 adam @@ -305,7 +309,8 @@ int main (int argc, char **argv) exit (1); } } - zebraIndexUnlock (); + if (common_resource) + zebraIndexUnlock (); exit (0); }