diff options
author | Jean-François Micouleau <jfm@samba.org> | 2000-02-07 16:22:16 +0000 |
---|---|---|
committer | Jean-François Micouleau <jfm@samba.org> | 2000-02-07 16:22:16 +0000 |
commit | b81dc7b7f832cae2e66076398a134fbb6c1f78ca (patch) | |
tree | 7651c119720fd5cb3dbb09326563f440a04256b3 /source/lib/util.c | |
parent | bd9d4cdde9193c120c6f4e8cf72f87cd67a9387e (diff) | |
download | samba-b81dc7b7f832cae2e66076398a134fbb6c1f78ca.tar.gz samba-b81dc7b7f832cae2e66076398a134fbb6c1f78ca.tar.xz samba-b81dc7b7f832cae2e66076398a134fbb6c1f78ca.zip |
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.
Diffstat (limited to 'source/lib/util.c')
-rw-r--r-- | source/lib/util.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/lib/util.c b/source/lib/util.c index 71f440eae52..a824887e88b 100644 --- a/source/lib/util.c +++ b/source/lib/util.c @@ -1662,6 +1662,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 ****************************************************************************/ BOOL get_myname(char *my_name) |