X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=nhrpd%2Fzbuf.c;h=c662295083e79063f814c14bfeecdde45fd03880;hb=91d227b7e3cb53ad8fdbcd9d4cff7f0a666918e3;hp=65232a309318b4cb9deae4e17195b6a87ea6ab41;hpb=54085eafebc926e7c004d4c0a8da519dad53c682;p=mirror_frr.git diff --git a/nhrpd/zbuf.c b/nhrpd/zbuf.c index 65232a309..c66229508 100644 --- a/nhrpd/zbuf.c +++ b/nhrpd/zbuf.c @@ -7,7 +7,10 @@ * (at your option) any later version. */ -#define _GNU_SOURCE +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include #include @@ -25,8 +28,6 @@ struct zbuf *zbuf_alloc(size_t size) struct zbuf *zb; zb = XMALLOC(MTYPE_ZBUF_DATA, sizeof(*zb) + size); - if (!zb) - return NULL; zbuf_init(zb, zb + 1, size, 0); zb->allocated = 1;