xbps: fix build with gcc14

This commit is contained in:
oreo639 2024-12-13 21:37:47 -08:00
parent 6f71c8889c
commit 73c8cdee1d

View file

@ -0,0 +1,13 @@
diff --git a/bin/xbps-fbulk/main.c b/bin/xbps-fbulk/main.c
index 6591bb61..4408bf20 100644
--- a/bin/xbps-fbulk/main.c
+++ b/bin/xbps-fbulk/main.c
@@ -397,7 +397,7 @@ runBuilds(const char *bpath)
static void
addDepn(struct item *item, struct item *xitem)
{
- struct depn *depn = calloc(sizeof(*depn), 1);
+ struct depn *depn = calloc(1, sizeof(*depn));
char *logpath3;
FILE *fp;