summaryrefslogtreecommitdiffstats
path: root/source/include/talloc.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-12-27 06:34:48 +0000
committerJeremy Allison <jra@samba.org>2001-12-27 06:34:48 +0000
commitd222a01e0f046883a602cc4591a400b8e65ef6b5 (patch)
treefc194966bc8770ad07d52ea8343bb73638f0f387 /source/include/talloc.h
parent26e4c4099c61c7ba9f2153e56061bea9882553d9 (diff)
downloadsamba-d222a01e0f046883a602cc4591a400b8e65ef6b5.tar.gz
samba-d222a01e0f046883a602cc4591a400b8e65ef6b5.tar.xz
samba-d222a01e0f046883a602cc4591a400b8e65ef6b5.zip
Removed spurious (char *) casts in SAFE_FREE calls.
Jeremy.
Diffstat (limited to 'source/include/talloc.h')
-rw-r--r--source/include/talloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/include/talloc.h b/source/include/talloc.h
index ee0c943c51f..06efbf6952a 100644
--- a/source/include/talloc.h
+++ b/source/include/talloc.h
@@ -34,7 +34,7 @@ typedef struct {
/* free memory if the pointer is valid and zero the pointer */
#ifndef SAFE_FREE
-#define SAFE_FREE(x) do { if ((x) != NULL) {free(x); x=NULL;} } while(0)
+#define SAFE_FREE(x) do { if ((x) != NULL) {free((x)); (x)=NULL;} } while(0)
#endif
#endif