From 772fd4d42be779bc7371831987e196d5b7dddf95 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Thu, 30 May 2024 11:13:07 +0200 Subject: [PATCH] distroquery.c: fix calloc usage error reported by gcc 14 --- src/distroquery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/distroquery.c b/src/distroquery.c index 0a8c3ea..07b244e 100644 --- a/src/distroquery.c +++ b/src/distroquery.c @@ -1,7 +1,7 @@ /* * distroquery - tool for querying data generated by distromatic * - * Copyright (C) 2013-2020 by Silvan Calarco + * Copyright (C) 2013-2024 by Silvan Calarco * * This program is free software; you can redistribute it and/or modify it under * the terms of version 2 of the GNU General Public License as published by the @@ -369,7 +369,7 @@ int findFileIdFromPath(sqlite3 *db, char** path) { char* pt; char buffer[PATH_MAX]; char sql[PATH_MAX]; - char* linkpath = calloc(strlen(*path),0); + char* linkpath = calloc(strlen(*path),1); sqlite3_stmt* stmt1; printf("[ROOT]",