mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
lib: qstrdup can return NULL
In fact there are more than several places that we do in fact pass in NULL to get a NULL returned. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
14267741aa
commit
f5d6b6bf9b
|
@ -152,8 +152,7 @@ extern void *qcalloc(struct memtype *mt, size_t size)
|
|||
__attribute__((malloc, _ALLOC_SIZE(2), nonnull(1) _RET_NONNULL));
|
||||
extern void *qrealloc(struct memtype *mt, void *ptr, size_t size)
|
||||
__attribute__((_ALLOC_SIZE(3), nonnull(1) _RET_NONNULL));
|
||||
extern void *qstrdup(struct memtype *mt, const char *str)
|
||||
__attribute__((malloc, nonnull(1) _RET_NONNULL));
|
||||
extern void *qstrdup(struct memtype *mt, const char *str);
|
||||
extern void qcountfree(struct memtype *mt, void *ptr)
|
||||
__attribute__((nonnull(1)));
|
||||
extern void qfree(struct memtype *mt, void *ptr) __attribute__((nonnull(1)));
|
||||
|
|
Loading…
Reference in a new issue