chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
889cec8
)
networkctl: fix strappend() error checking
author
David Herrmann
<dh.herrmann@gmail.com>
Wed, 31 Dec 2014 14:56:11 +0000
(15:56 +0100)
committer
David Herrmann
<dh.herrmann@gmail.com>
Wed, 31 Dec 2014 14:56:11 +0000
(15:56 +0100)
Make sure to test the right variable for NULL.
src/network/networkctl.c
patch
|
blob
|
history
diff --git
a/src/network/networkctl.c
b/src/network/networkctl.c
index 21e9b383b2232e71257a0ae690dbfbd5aa8d2724..15dfb81e2a260cde3af8344fc4cb7544c6825dba 100644
(file)
--- 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);