summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/network/networkctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c
index 21e9b383b2..15dfb81e2a 100644
--- a/src/network/networkctl.c
+++ b/src/network/networkctl.c
@@ -880,7 +880,7 @@ static char *lldp_system_caps(uint16_t cap) {
}
t = strappend(s, "]");
- if (!s)
+ if (!t)
return NULL;
free(s);