Skip to content

Commit 14d1560

Browse files
authored
Merge pull request #1680 from ndim/fix-Wcalloc-transposed-args
Fix -Wcalloc-transposed-args warning
2 parents 64f2a3e + e018819 commit 14d1560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/avrftdi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ avrftdi_setup(PROGRAMMER * pgm)
12711271
avrftdi_t* pdata;
12721272

12731273

1274-
if(!(pgm->cookie = calloc(sizeof(avrftdi_t), 1))) {
1274+
if(!(pgm->cookie = calloc(1, sizeof(avrftdi_t)))) {
12751275
log_err("Error allocating memory.\n");
12761276
exit(1);
12771277
}

0 commit comments

Comments
 (0)