mirror of
https://github.com/systemd/systemd
synced 2024-07-21 10:17:21 +00:00
alloc-util: drop _alloc_ decorator from memdup_suffix0()
Fixes: https://github.com/systemd/systemd/pull/13034#issuecomment-510801671
This commit is contained in:
parent
8678837563
commit
b65011dad0
|
@ -58,7 +58,7 @@ static inline void *mfree(void *memory) {
|
|||
})
|
||||
|
||||
void* memdup(const void *p, size_t l) _alloc_(2);
|
||||
void* memdup_suffix0(const void *p, size_t l) _alloc_(2);
|
||||
void* memdup_suffix0(const void *p, size_t l); /* We can't use _alloc_() here, since we return a buffer one byte larger than the specified size */
|
||||
|
||||
#define memdupa(p, l) \
|
||||
({ \
|
||||
|
|
Loading…
Reference in a new issue