Use calloc, rather than malloc/memset
[openafs.git] / src / lwp / test / selsubs.c
index 0567851..efc16a5 100644 (file)
@@ -38,8 +38,7 @@
 fd_set *
 IOMGR_AllocFDSet(void)
 {
-    fd_set *tmp = (fd_set *) malloc(sizeof(fd_set));
-    memset(tmp, 0, sizeof(fd_set));
+    fd_set *tmp = calloc(1, sizeof(fd_set));
     return tmp;
 }