summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2022-05-20 15:53:47 +0800
committerliuxueli <[email protected]>2022-05-20 15:53:47 +0800
commit17a8c2ba80e80847a2007f6d3e3b0e7e436189dd (patch)
tree5387d678b3c0a479a1d58656087c0e2e588d1e97 /src
parent4899c9e96aa9edef9b50a8e274f9bb0cfc16056b (diff)
TSG-10275: 判断条件笔误导致tsg_register_topic函数一直失败v5.6.4
Diffstat (limited to 'src')
-rw-r--r--src/tsg_send_log.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}