summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ntc_app_plug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ntc_app_plug.cpp b/src/ntc_app_plug.cpp
index 8d39f0b..96d64e6 100644
--- a/src/ntc_app_plug.cpp
+++ b/src/ntc_app_plug.cpp
@@ -622,7 +622,7 @@ int NTC_APP_PLUG_INIT()
}
#endif
int max_thread_num = get_thread_count();
- g_ntc_app_plug.lhash_handle = (MESA_htable_handle *)calloc(32, sizeof(MESA_htable_handle));
+ g_ntc_app_plug.lhash_handle = (MESA_htable_handle *)calloc(max_thread_num, sizeof(MESA_htable_handle));
args.thread_safe = 0;
args.recursive = 0;