Don't cast the pointer past to memset
[openafs.git] / src / lwp / test / selsubs.c
index 2cba547..0304c8b 100644 (file)
@@ -39,7 +39,7 @@ fd_set *
 IOMGR_AllocFDSet(void)
 {
     fd_set *tmp = (fd_set *) malloc(sizeof(fd_set));
-    memset((char *)tmp, 0, sizeof(fd_set));
+    memset(tmp, 0, sizeof(fd_set));
     return tmp;
 }