oops - ZERO_STRUCTP() issues again...
authorLuke Leighton <lkcl@samba.org>
Fri, 13 Nov 1998 19:03:07 +0000 (19:03 +0000)
committerLuke Leighton <lkcl@samba.org>
Fri, 13 Nov 1998 19:03:07 +0000 (19:03 +0000)
source/include/smb.h

index acbd56d81e1374443cc684892580efb72beccb5f..bb055214ec540b246026e6018d1533ab8fb86d02 100644 (file)
@@ -1655,10 +1655,7 @@ extern int unix_ERR_code;
 #define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x))
 
 /* zero a structure given a pointer to the structure */
-#define ZERO_STRUCTP(x) memset((char *)(x), 0, sizeof(*(x))
-
-/* zero a structure given a pointer to the structure */
-#define ZERO_STRUCTPN(x) { if ((x) != NULL) ZERO_STRUCTP(x); }
+#define ZERO_STRUCTP(x) { if ((x) != NULL) memset((char *)(x), 0, sizeof(*(x))); }
 
 /* zero an array - note that sizeof(array) must work - ie. it must not be a 
    pointer */