summaryrefslogtreecommitdiff
path: root/lib/util/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/alloc.c')
-rw-r--r--lib/util/alloc.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/util/alloc.c b/lib/util/alloc.c
index 924f8e8..da99d01 100644
--- a/lib/util/alloc.c
+++ b/lib/util/alloc.c
@@ -36,15 +36,3 @@ void *alloc_array(size_t item_size, size_t nmemb)
return calloc(1, size);
}
-
-void *alloc_string(size_t len)
-{
- size_t size;
-
- if (SZ_ADD_OV(len, 1, &size)) {
- errno = EOVERFLOW;
- return NULL;
- }
-
- return calloc(1, size);
-}