Skip to content

Commit

Permalink
updated mainlib.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kray-G committed Mar 30, 2021
1 parent e41a89c commit dfffe6c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/mainlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,6 @@ const char *search_exec_file(kx_context_t *ctx, const char *execname)

DllExport int do_main(int ac, char **av)
{
int r = 1;
init_allocator();
alloc_initialize();
pthread_mutex_init(&g_mutex, NULL);

#ifdef YYDEBUG
kx_yydebug = 1;
#endif
Expand All @@ -314,7 +309,14 @@ DllExport int do_main(int ac, char **av)
}
#endif

/* initializations */
init_allocator();
alloc_initialize();
pthread_mutex_init(&g_mutex, NULL);
g_packages = kh_init(package);

/* option check */
int r = 1;
int error_code = -1;
int disp_version = -1;
const char *filename = NULL;
Expand Down

0 comments on commit dfffe6c

Please sign in to comment.