X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fmain.c;h=d10fbccd3b3c10ec2b43a15f4465df978abdcd95;hb=43506dd0ff92373604bb7288e2dcc943b2c1d524;hp=e7b0d311b347d4184ad25c14b06940cb4cb810fc;hpb=ab29b69b841495c2713d8a82ad8b2100f78aa3aa;p=idzebra-moved-to-github.git diff --git a/index/main.c b/index/main.c index e7b0d31..d10fbcc 100644 --- a/index/main.c +++ b/index/main.c @@ -4,7 +4,13 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: main.c,v $ - * Revision 1.71 1999-09-08 12:12:06 adam + * Revision 1.73 1999-11-30 13:48:03 adam + * Improved installation. Updated for inclusion of YAZ header files. + * + * Revision 1.72 1999/10/14 14:33:50 adam + * Added truncation 5=106. + * + * Revision 1.71 1999/09/08 12:12:06 adam * Fixed bad message. * * Revision 1.70 1999/09/07 07:19:21 adam @@ -267,7 +273,7 @@ #include #endif -#include +#include #include "index.h" #include "recindex.h" @@ -372,6 +378,11 @@ int main (int argc, char **argv) rGroupDef.bfs = bfs_create (res_get (common_resource, "register")); + if (!rGroupDef.bfs) + { + logf (LOG_FATAL, "Cannot access register"); + exit(1); + } bf_lockDir (rGroupDef.bfs, res_get (common_resource, "lockDir"));