summaryrefslogtreecommitdiff
path: root/accel-pppd/cli
diff options
context:
space:
mode:
authorxebd <xeb@mail.ru>2021-03-17 11:30:45 +0300
committerGitHub <noreply@github.com>2021-03-17 11:30:45 +0300
commit02ee3cf8abebec16bf9106426e095495144c3d2f (patch)
treed871c149812c68b7ceee591f6bb265f4ad643414 /accel-pppd/cli
parent49ef6cf969f662c44f4be2b82b101273c8c6de71 (diff)
parent2785d81ec848ebb920c8a612b4eae7876a619a18 (diff)
downloadaccel-ppp-xebd-02ee3cf8abebec16bf9106426e095495144c3d2f.tar.gz
accel-ppp-xebd-02ee3cf8abebec16bf9106426e095495144c3d2f.zip
Merge pull request #153 from anphsw/master
Some bugfixes found by cppcheck
Diffstat (limited to 'accel-pppd/cli')
-rw-r--r--accel-pppd/cli/tcp.c2
-rw-r--r--accel-pppd/cli/telnet.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/cli/tcp.c b/accel-pppd/cli/tcp.c
index 270d8cb..87633cb 100644
--- a/accel-pppd/cli/tcp.c
+++ b/accel-pppd/cli/tcp.c
@@ -298,7 +298,7 @@ static int serv_read(struct triton_md_handler_t *h)
static void serv_close(struct triton_context_t *ctx)
{
- struct tcp_client_t *cln;
+ struct tcp_client_t *cln = NULL;
while (!list_empty(&clients)) {
cln = list_entry(clients.next, typeof(*cln), entry);
diff --git a/accel-pppd/cli/telnet.c b/accel-pppd/cli/telnet.c
index 4b5f63b..4ea1839 100644
--- a/accel-pppd/cli/telnet.c
+++ b/accel-pppd/cli/telnet.c
@@ -635,7 +635,7 @@ static int serv_read(struct triton_md_handler_t *h)
}
static void serv_close(struct triton_context_t *ctx)
{
- struct telnet_client_t *cln;
+ struct telnet_client_t *cln = NULL;
while (!list_empty(&clients)) {
cln = list_entry(clients.next, typeof(*cln), entry);