mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Fix trivial calloc(3) arguments order
Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Ryan Moeller <freqlabs@FreeBSD.org> Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com> Closes #13052
This commit is contained in:
@@ -818,7 +818,7 @@ main(int argc, char *argv[])
|
||||
break;
|
||||
case 't':
|
||||
tagslen = strlen(optarg) + 2;
|
||||
tags = calloc(tagslen, 1);
|
||||
tags = calloc(1, tagslen);
|
||||
if (tags == NULL) {
|
||||
fprintf(stderr,
|
||||
"error: cannot allocate memory "
|
||||
|
||||
Reference in New Issue
Block a user