Merge pull request #16498 from taosdata/fix/TD-18722

fix(driver): initialize variable when only use tmq
This commit is contained in:
Shengliang Guan 2022-08-30 13:23:08 +08:00 committed by GitHub
commit 8879dc6e59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ void commit_cb(tmq_t *tmq, int32_t code, void *param) {
JNIEXPORT jlong JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqConfNewImp(JNIEnv *env, jobject jobj) {
tmq_conf_t *conf = tmq_conf_new();
jniGetGlobalMethod(env);
return (jlong)conf;
}