Fix incorrect use of sizeof().

Coverity CID:	1011303
Approved by:	re (glebius)
Sponsored by:	FreeBSD Foundation
This commit is contained in:
Edward Tomasz Napierala 2013-10-09 12:19:48 +00:00
parent 1af403658b
commit 846c5adb77
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256190

View File

@ -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.