fujuntang
2021-11-30 490948a0d52a3ad7b3f94525a982fc7012d06011
src/socket/shm_mod_socket.cpp
@@ -301,6 +301,7 @@
int  ShmModSocket::pub(const char *topic, int topic_size, const void *content, int content_size, int key, const struct timespec *timeout, int flags) {
   int ret;
   bus_head_t head = {};
    topic = trim(const_cast<char *>(topic), 0);
   memcpy(head.action, "pub", sizeof(head.action));
   head.topic_size = topic_size = strlen(topic) + 1;
   head.content_size = content_size;