From d4e97f600a39e2ff534b941b1cc16b645acc64fb Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Wed, 26 Jun 2019 20:28:34 +0800 Subject: [PATCH] update pj1_mqttd project, fix video start can not work bug --- pj1_mqttd/etc/conf.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pj1_mqttd/etc/conf.c b/pj1_mqttd/etc/conf.c index 5b73e3e..000c10a 100644 --- a/pj1_mqttd/etc/conf.c +++ b/pj1_mqttd/etc/conf.c @@ -103,9 +103,9 @@ log_err("ERROR: Parser production ID failure\n"); return -2; } - snprintf(ctx->id, sizeof(ctx->id), "\"%s\"", str); - //strncpy(ctx->id, str, sizeof(ctx->id) ); + /* cJSON parser ID will get "" */ + snprintf(ctx->id, sizeof(ctx->id), "\"%s\"", str); log_nrml("Parser production ID [%s]\n", ctx->id); -- Gitblit v1.9.1