mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 15:03:27 +00:00
lib: Fix clang SA warnings.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
8e7702bc34
commit
8f21cf48a1
@ -182,7 +182,8 @@ imsg_get(struct imsgbuf *ibuf, struct imsg *imsg)
|
||||
else
|
||||
imsg->fd = -1;
|
||||
|
||||
memcpy(imsg->data, ibuf->r.rptr, datalen);
|
||||
if (imsg->data)
|
||||
memcpy(imsg->data, ibuf->r.rptr, datalen);
|
||||
|
||||
if (imsg->hdr.len < av) {
|
||||
left = av - imsg->hdr.len;
|
||||
|
Loading…
Reference in New Issue
Block a user