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]",