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);