X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=index%2Fmain.c;h=7870d5281cd036a974c2c5a98d9c3893ed79421f;hb=195222aff7f9fa54caaef052c3fdd15f47f4703d;hp=eb4533b685f6a4d9d6c7511c43115f0c8ae39e29;hpb=3d01abbe1238c82d62e4c01eb7cac760d3d53377;p=idzebra-moved-to-github.git diff --git a/index/main.c b/index/main.c index eb4533b..7870d52 100644 --- a/index/main.c +++ b/index/main.c @@ -4,7 +4,14 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: main.c,v $ - * Revision 1.51 1997-10-27 14:33:05 adam + * Revision 1.53 1997-11-18 10:05:08 adam + * Changed character map facility so that admin can specify character + * mapping files for each register type, w, p, etc. + * + * Revision 1.52 1997/10/31 12:34:04 adam + * Added missing nmem_init. + * + * Revision 1.51 1997/10/27 14:33:05 adam * Moved towards generic character mapping depending on "structure" * field in abstract syntax file. Fixed a few memory leaks. Fixed * bug with negative integers when doing searches with relational @@ -223,7 +230,9 @@ int main (int argc, char **argv) int disableCommit = 0; struct recordGroup rGroupDef; - + + nmem_init (); + rGroupDef.groupName = NULL; rGroupDef.databaseName = NULL; rGroupDef.path = NULL; @@ -288,7 +297,7 @@ int main (int argc, char **argv) bf_lockDir (rGroupDef.bfs, res_get (common_resource, "lockDir")); rGroupDef.zebra_maps = zebra_maps_open (res_get( - common_resource, "profilePath")); + common_resource, "profilePath"), common_resource); } if (!strcmp (arg, "update")) cmd = 'u'; @@ -462,5 +471,6 @@ int main (int argc, char **argv) } data1_destroy (rGroupDef.dh); exit (0); + return 0; }