diff options
author | delphij <delphij@FreeBSD.org> | 2009-05-15 19:41:10 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2009-05-15 19:41:10 +0000 |
commit | 09f0a4d580a774c977483c95ef828b7b1cd1075b (patch) | |
tree | b44d3a6db95da13fd6fb76f0ec4c3d074da794ec /usr.bin/truss/amd64-linux32.c | |
parent | 35faa7fd183b522ed6ca1364a393d6c71c8b1519 (diff) | |
download | FreeBSD-src-09f0a4d580a774c977483c95ef828b7b1cd1075b.zip FreeBSD-src-09f0a4d580a774c977483c95ef828b7b1cd1075b.tar.gz |
Reduce diff against my local version: replace malloc+memset() cases to calloc().
Diffstat (limited to 'usr.bin/truss/amd64-linux32.c')
-rw-r--r-- | usr.bin/truss/amd64-linux32.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/truss/amd64-linux32.c b/usr.bin/truss/amd64-linux32.c index 7f7390a..7d88c8d 100644 --- a/usr.bin/truss/amd64-linux32.c +++ b/usr.bin/truss/amd64-linux32.c @@ -164,8 +164,7 @@ amd64_linux32_syscall_entry(struct trussinfo *trussinfo, int nargs) { fsc.nargs = nargs; } - fsc.s_args = malloc((1+fsc.nargs) * sizeof(char*)); - memset(fsc.s_args, 0, fsc.nargs * sizeof(char*)); + fsc.s_args = calloc(1, (1+fsc.nargs) * sizeof(char*)); fsc.sc = sc; /* |