summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/network/networkctl.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c
index cc3ea85e8c..f85058c272 100644
--- a/src/network/networkctl.c
+++ b/src/network/networkctl.c
@@ -900,7 +900,6 @@ static int link_lldp_status(int argc, char *argv[], void *userdata) {
usec_t time, until, ttl;
uint32_t capability;
- char buf[LINE_MAX];
int i, r, c, j;
size_t ll;
char **s;
@@ -955,15 +954,11 @@ static int link_lldp_status(int argc, char *argv[], void *userdata) {
continue;
if (streq(a, "_Chassis")) {
-
- memzero(buf, LINE_MAX);
-
chassis = strdup(b);
if (!chassis)
return -ENOMEM;
} else if (streq(a, "_Port")) {
-
port = strdup(b);
if (!port)
return -ENOMEM;