artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a372e1e
)
Use data != NULL to be more explicit. No functional change.
author
claudio
<claudio@openbsd.org>
Mon, 12 Jun 2023 12:10:17 +0000
(12:10 +0000)
committer
claudio
<claudio@openbsd.org>
Mon, 12 Jun 2023 12:10:17 +0000
(12:10 +0000)
OK tb@
usr.sbin/bgpd/rde_attr.c
patch
|
blob
|
history
diff --git
a/usr.sbin/bgpd/rde_attr.c
b/usr.sbin/bgpd/rde_attr.c
index
f6e24ba
..
982f5cd
100644
(file)
--- a/
usr.sbin/bgpd/rde_attr.c
+++ b/
usr.sbin/bgpd/rde_attr.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: rde_attr.c,v 1.13
2 2022/12/14 12:37:15
claudio Exp $ */
+/* $OpenBSD: rde_attr.c,v 1.13
3 2023/06/12 12:10:17
claudio Exp $ */
/*
* Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
@@
-85,7
+85,7
@@
attr_writebuf(struct ibuf *buf, uint8_t flags, uint8_t type, void *data,
if (ibuf_add(buf, hdr, flags & ATTR_EXTLEN ? 4 : 3) == -1)
return (-1);
- if (data && ibuf_add(buf, data, data_len) == -1)
+ if (data
!= NULL
&& ibuf_add(buf, data, data_len) == -1)
return (-1);
return (0);
}