From ec02f83f9411f5737f1e77443d282c7e3feda0e4 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Tue, 18 Nov 2003 08:20:09 +0000 Subject: add a tor_malloc_zero wrapper: tor_malloc and memset 0 svn:r836 --- src/common/util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/common/util.h') diff --git a/src/common/util.h b/src/common/util.h index f1c744b01b..8e91532ba0 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -33,6 +33,7 @@ #endif void *tor_malloc(size_t size); +void *tor_malloc_zero(size_t size); void *tor_realloc(void *ptr, size_t size); char *tor_strdup(const char *s); #define tor_free(p) do {if(p) {free(p); (p)=NULL;}} while(0) -- cgit v1.2.3-54-g00ecf