diff options
author | Joe Orton <jorton@redhat.com> | 2021-09-17 17:36:39 +0100 |
---|---|---|
committer | Joe Orton <jorton@redhat.com> | 2021-09-17 17:36:39 +0100 |
commit | 61cffebfa56391647aa59dd31996dc3664703700 (patch) | |
tree | f7f2f05f6eca18b04b40152e122f7060b35f9b84 | |
parent | 53fc9706c366dc08dc53f8f68c23944a7f29a005 (diff) | |
download | neon-git-61cffebfa56391647aa59dd31996dc3664703700.tar.gz |
* src/ne_alloc.h (ne_calloc): Add malloc attribute.
-rw-r--r-- | src/ne_alloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ne_alloc.h b/src/ne_alloc.h index 6800830..4c328a4 100644 --- a/src/ne_alloc.h +++ b/src/ne_alloc.h @@ -44,7 +44,7 @@ void ne_oom_callback(ne_oom_callback_fn callback); * registered. The C library will only ever return NULL if the * operating system does not use optimistic memory allocation. */ void *ne_malloc(size_t size) ne_attribute_alloc_size(1) ne_attribute_malloc; -void *ne_calloc(size_t size) ne_attribute_alloc_size(1); +void *ne_calloc(size_t size) ne_attribute_alloc_size(1) ne_attribute_malloc; void *ne_realloc(void *ptr, size_t s) ne_attribute_alloc_size(2); char *ne_strdup(const char *s) ne_attribute_malloc; char *ne_strndup(const char *s, size_t n) ne_attribute_malloc; |