Merge pull request #1384 from fengzeroz/v2.5

fix cppcheck
This commit is contained in:
fengzeroz
2023-07-10 11:37:43 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -857,7 +857,7 @@ static void conn_connect(neu_conn_t *conn)
struct termios tty_opt = { 0 };
#ifdef NEU_SMART_LINK
#include "connection/neu_smart_link.h"
int ret =
ret =
neu_conn_smart_link_auto_set(conn->param.params.tty_client.device);
zlog_notice(conn->param.log, "smart link ret: %d", ret);
if (ret > 0) {
+1 -1
View File
@@ -68,7 +68,7 @@ static int read_file(const char *path, char **buf)
rewind(fp);
*buf = calloc(1, size + 1);
if (buf == NULL) {
if (*buf == NULL) {
fclose(fp);
return -1;
}