PR/50571: David Binderman: src/sys/fs/udf/udf_subr.c:6465: obvious

performance tidyup
This commit is contained in:
christos 2015-12-19 01:18:00 +00:00
parent 927b4a5792
commit 014d2807e0
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: udf_subr.c,v 1.132 2015/08/24 08:31:56 hannken Exp $ */
/* $NetBSD: udf_subr.c,v 1.133 2015/12/19 01:18:00 christos Exp $ */
/*
* Copyright (c) 2006, 2008 Reinoud Zandijk
@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#ifndef lint
__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.132 2015/08/24 08:31:56 hannken Exp $");
__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.133 2015/12/19 01:18:00 christos Exp $");
#endif /* not lint */
@ -6462,8 +6462,8 @@ udf_read_internal(struct udf_node *node, uint8_t *blob)
assert(inflen < sector_size);
/* copy out info */
memset(blob, 0, sector_size);
memcpy(blob, pos, inflen);
memset(&blob[inflen] 0, sector_size - inflen);
return 0;
}