From df83bf9fb32f4090ac977a262faa5262a8110298 Mon Sep 17 00:00:00 2001 From: GreekStapler Date: Thu, 2 Feb 2023 11:02:31 +0000 Subject: [PATCH] fix: Initialise variables to keep CI from breaking. --- src/package/vieter_package.c | 2 +- src/package/vieter_package_info.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/package/vieter_package.c b/src/package/vieter_package.c index 4bb7622..e5530e4 100644 --- a/src/package/vieter_package.c +++ b/src/package/vieter_package.c @@ -65,7 +65,7 @@ vieter_package_error vieter_package_read_archive(vieter_package *pkg, int compression_code = archive_filter_code(a, 0); const char *path_name; - vieter_package_info *pkg_info; + vieter_package_info *pkg_info = NULL; vieter_package_dynarray *files = vieter_package_dynarray_init(16); vieter_package_dynarray_add(files, "%FILES%"); diff --git a/src/package/vieter_package_info.c b/src/package/vieter_package_info.c index 1dfd0b7..ff5f1fe 100644 --- a/src/package/vieter_package_info.c +++ b/src/package/vieter_package_info.c @@ -63,7 +63,7 @@ void vieter_package_info_free(vieter_package_info *pkg_info) { void vieter_package_info_parse(vieter_package_info *pkg_info, char *pkg_info_str) { - char *value_ptr = pkg_info_str, *tail_ptr; + char *value_ptr = pkg_info_str, *tail_ptr = NULL; PKG_INFO_STRING("\npkgname = ", name); PKG_INFO_STRING("\npkgbase = ", base);