summaryrefslogtreecommitdiff
path: root/src/network/networkctl.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-12-31 15:56:11 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2014-12-31 15:56:11 +0100
commitfbee1d8587458922dec3fd8a9e0f663313697029 (patch)
tree3d52d32959bcb790d52758d4b13a1ac274a29f8a /src/network/networkctl.c
parent889cec8d58a00c8362ab0c6493bad39e9c6849bc (diff)
networkctl: fix strappend() error checking
Make sure to test the right variable for NULL.
Diffstat (limited to 'src/network/networkctl.c')
-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);