networkctl: fix strappend() error checking

Make sure to test the right variable for NULL.
This commit is contained in:
David Herrmann
2014-12-31 15:56:11 +01:00
parent 889cec8d58
commit fbee1d8587
+1 -1
View File
@@ -880,7 +880,7 @@ static char *lldp_system_caps(uint16_t cap) {
}
t = strappend(s, "]");
if (!s)
if (!t)
return NULL;
free(s);