Fix compilation warning regarding calloc and sizeof

This commit is contained in:
indev committed 2024-04-11 19:12:14 +03:00
1 parent af265d017d
commit 7cd6a031cd
1 file changed
+1 -1
+1 -1
View File
@@ -71,7 +71,7 @@ apng_create_info_struct (png_structp pngp)
{
apng_infop ainfop;
(void)pngp;
if (( ainfop = calloc(sizeof (apng_info),1) ))
if (( ainfop = calloc(1, sizeof (apng_info)) ))
{
apng_set_write_fn(pngp, ainfop, 0, 0, 0, 0, 0);
apng_set_set_acTL_fn(pngp, ainfop, 0);