1
0
mirror of https://github.com/eclipse/mosquitto.git synced 2025-05-08 16:52:13 +08:00

remove cjson stranded reference when building WITH_CJSON=no

Signed-off-by: Abilio Marques <abiliojr@gmail.com>
This commit is contained in:
Abilio Marques 2020-05-20 07:25:11 +02:00 committed by Roger Light
parent c766bdfeb0
commit 22ffefe7f6

View File

@ -313,7 +313,6 @@ static int json_print(const struct mosquitto_message *message, const mosquitto_p
snprintf(&buf[strlen("2020-05-06T21:48:00.")], 9, "%06d", ns/1000);
buf[strlen("2020-05-06T21:48:00.000000")] = 'Z';
tmp = cJSON_CreateStringReference(buf);
printf("{\"tst\":\"%s\",\"topic\":\"%s\",\"qos\":%d,\"retain\":%d,\"payloadlen\":%d,", buf, message->topic, message->qos, message->retain, message->payloadlen);
if(message->qos > 0){
printf("\"mid\":%d,", message->mid);