aboutsummaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-28 23:36:55 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-28 23:36:55 +0200
commitaae81fd483b70c24ade4f1a26c7de39051ab7995 (patch)
treeacdd753937a012108f0cde4236cc02884d81b957 /lib/util
parentd758950ac88c2c6759d1616ac8be2c70c9dcf761 (diff)
Cleanup: remove string allocation helper function
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/util')
-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);
-}