From: Michael Tremer Date: Mon, 27 Jan 2025 16:50:52 +0000 (+0000) Subject: repo: Initialize return value on scan just in case we find no files X-Git-Tag: 0.9.30~340 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39203aec4880a00507785a27a5d2c1365a9ca518;p=pakfire.git repo: Initialize return value on scan just in case we find no files Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/repo.c b/src/pakfire/repo.c index 3a6b4b60..aeda4cf0 100644 --- a/src/pakfire/repo.c +++ b/src/pakfire/repo.c @@ -1549,7 +1549,7 @@ static int __pakfire_repo_scan(struct pakfire_repo* repo, struct pakfire_repo_scan_ctx* scan_ctx, pakfire_repo_scan_callback callback) { FTSENT* entry = NULL; FTS* fts = NULL; - int r; + int r = 0; // Fetch the repository path const char* path = pakfire_repo_get_path(repo);