]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lib: avoid useless initialization of buffer
authorVincent Bernat <vincent@bernat.ch>
Sun, 12 Dec 2021 13:00:40 +0000 (14:00 +0100)
committerVincent Bernat <vincent@bernat.ch>
Sun, 12 Dec 2021 13:00:40 +0000 (14:00 +0100)
src/lib/connection.c

index 03107440a7b22595c17e88e4d46e6e46e0a9c1c5..2eed5a4b31544b4e7c2779ffcaab606e698b7fcb 100644 (file)
@@ -157,7 +157,7 @@ lldpctl_release(lldpctl_conn_t *conn)
 ssize_t
 _lldpctl_needs(lldpctl_conn_t *conn, size_t length)
 {
-       uint8_t *buffer = NULL;
+       uint8_t *buffer;
        ssize_t  rc;
 
        if ((buffer = malloc(length)) == NULL)