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 | 59ac32c2556e970ea1fe171e7b76cfee2142fbf0 (patch) | |
tree | 9af57449a0e2b38f82d46f16f6c00e2effb6f3e8 /source3/lib/util.c | |
parent | 6a6749d81e892bb06bfdc0fefdc428e5e6599f71 (diff) | |
download | samba-59ac32c2556e970ea1fe171e7b76cfee2142fbf0.tar.gz samba-59ac32c2556e970ea1fe171e7b76cfee2142fbf0.tar.bz2 samba-59ac32c2556e970ea1fe171e7b76cfee2142fbf0.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.
(This used to be commit b81dc7b7f832cae2e66076398a134fbb6c1f78ca)
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r-- | source3/lib/util.c | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ -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) |