From 59ac32c2556e970ea1fe171e7b76cfee2142fbf0 Mon Sep 17 00:00:00 2001 From: Jean-François Micouleau Date: Mon, 7 Feb 2000 16:22:16 +0000 Subject: Jeremy can you check lib/util_unistr.c for codepages support ? I added 2 UNICODE <-> ASCII functions which _don't_ honor codepage support. J.F. (This used to be commit b81dc7b7f832cae2e66076398a134fbb6c1f78ca) --- source3/lib/util.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source3/lib/util.c') diff --git a/source3/lib/util.c b/source3/lib/util.c index 71f440eae5..a824887e88 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1661,6 +1661,18 @@ void *Realloc(void *p,size_t size) } +/**************************************************************************** +free memory, checks for NULL +****************************************************************************/ +void safe_free(void *p) +{ + if (p != NULL) + { + free(p); + } +} + + /**************************************************************************** get my own name and IP ****************************************************************************/ -- cgit