From 17a8c2ba80e80847a2007f6d3e3b0e7e436189dd Mon Sep 17 00:00:00 2001 From: liuxueli Date: Fri, 20 May 2022 15:53:47 +0800 Subject: [PATCH] =?UTF-8?q?TSG-10275:=20=E5=88=A4=E6=96=AD=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E7=AC=94=E8=AF=AF=E5=AF=BC=E8=87=B4tsg=5Fregister=5Ft?= =?UTF-8?q?opic=E5=87=BD=E6=95=B0=E4=B8=80=E7=9B=B4=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_send_log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tsg_send_log.cpp b/src/tsg_send_log.cpp index efc62db..89dff63 100644 --- a/src/tsg_send_log.cpp +++ b/src/tsg_send_log.cpp @@ -2034,7 +2034,7 @@ int tsg_send_log(struct tsg_log_instance_t *instance, struct TLD_handle_t *handl int tsg_register_topic(struct tsg_log_instance_t *instance, char *topic_name) { struct tsg_log_instance_t *_instance=(struct tsg_log_instance_t *)instance; - if(_instance==NULL || _instance->mode==CLOSE || topic_name==NULL || _instance->kafka_handle!=NULL) + if(_instance==NULL || _instance->mode==CLOSE || topic_name==NULL || _instance->kafka_handle==NULL) { return -1; }