Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/makefs/ffs zero memory



details:   https://anonhg.NetBSD.org/src/rev/ccd68d975234
branches:  trunk
changeset: 784384:ccd68d975234
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 27 14:10:22 2013 +0000

description:
zero memory

diffstat:

 usr.sbin/makefs/ffs/buf.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r cad4a53f0a45 -r ccd68d975234 usr.sbin/makefs/ffs/buf.h
--- a/usr.sbin/makefs/ffs/buf.h Sun Jan 27 14:10:03 2013 +0000
+++ b/usr.sbin/makefs/ffs/buf.h Sun Jan 27 14:10:22 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: buf.h,v 1.4 2013/01/26 16:50:46 christos Exp $ */
+/*     $NetBSD: buf.h,v 1.5 2013/01/27 14:10:22 christos Exp $ */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -99,7 +99,7 @@
 };
 
 #define pool_init(p, s, a1, a2, a3, a4, a5, a6)        (p)->size = (s)
-#define pool_get(p, f) malloc((p)->size)
+#define pool_get(p, f) calloc(1, (p)->size)
 #define pool_put(p, a) free(a)
 #define pool_destroy(p)
 



Home | Main Index | Thread Index | Old Index