diff options
author | trasz <trasz@FreeBSD.org> | 2013-10-09 12:19:48 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2013-10-09 12:19:48 +0000 |
commit | 089479fb9ecc0c054a9f99cabcf665879324770a (patch) | |
tree | 5c310ebad0d61e1be83ad4a09729fb1defb5e92a /usr.sbin/ctladm/ctladm.c | |
parent | 05bb4f6fbc1f863061664e81e3d03fea7ee90f3c (diff) | |
download | FreeBSD-src-089479fb9ecc0c054a9f99cabcf665879324770a.zip FreeBSD-src-089479fb9ecc0c054a9f99cabcf665879324770a.tar.gz |
Fix incorrect use of sizeof().
Coverity CID: 1011303
Approved by: re (glebius)
Sponsored by: FreeBSD Foundation
Diffstat (limited to 'usr.sbin/ctladm/ctladm.c')
-rw-r--r-- | usr.sbin/ctladm/ctladm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ctladm/ctladm.c b/usr.sbin/ctladm/ctladm.c index d26bf72..5517284 100644 --- a/usr.sbin/ctladm/ctladm.c +++ b/usr.sbin/ctladm/ctladm.c @@ -700,7 +700,7 @@ cctl_port(int fd, int argc, char **argv, char *combinedopt) } else if ((targ_port == -1) && (port_type == CTL_PORT_NONE)) port_type = CTL_PORT_ALL; - bzero(&entry, sizeof(&entry)); + bzero(&entry, sizeof(entry)); /* * These are needed for all but list/dump mode. |