From d62457bb110cac9961c0b7e76da93d787f11c51c Mon Sep 17 00:00:00 2001 From: Vivek Kumar Dutta Date: Fri, 30 Aug 2024 17:31:46 +0530 Subject: [PATCH] Fix cppcheck errors --- src/http.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/http.c b/src/http.c index e6a618b..661c3ed 100644 --- a/src/http.c +++ b/src/http.c @@ -377,8 +377,8 @@ static void http_success_cr(void) /* Flawfinder: ignore */ FILE *pp = popen("ubus call tr069 inform", "r"); if (pp) { - pclose(pp); - rc = WEXITSTATUS(pp); + int status = pclose(pp); + rc = WEXITSTATUS(status); } retry = retry + 1; } @@ -689,7 +689,7 @@ void icwmp_http_server_init(void) cr_port_str[5] = '\0'; set_uci_path_value(NULL, "cwmp.cpe.port", cr_port_str); /* Flawfinder: ignore */ - FILE *pp = popen(FIREWALL_CWMP, 'r'); + FILE *pp = popen(FIREWALL_CWMP, "r"); if (pp) { pclose(pp); }