From 835054c8a30ed4aa0ec26c47346f3a2aac14b178 Mon Sep 17 00:00:00 2001 From: tuxmaster5000 <837503+tuxmaster5000@users.noreply.github.com> Date: Fri, 16 Apr 2021 07:20:03 +0200 Subject: [PATCH 1/2] Fix gcc errors --- CHANGELOG.md | 1 + boreas/alivedetection.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 990a4472e..cccdff635 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Changed ### Removed ### Fixed +- Fix uninitialized variable error of the gcc. [#476]() [21.10]: https://github.com/greenbone/gvm-libs/compare/gvm-libs-21.04...master diff --git a/boreas/alivedetection.c b/boreas/alivedetection.c index b113f0409..07edbda5b 100644 --- a/boreas/alivedetection.c +++ b/boreas/alivedetection.c @@ -78,8 +78,8 @@ scan (alive_test_t alive_test) int scandb_id; gchar *scan_id; /* Following variables are only relevant if only ICMP was chosen. */ - int remaining_batch; - int prev_alive; + int remaining_batch = 0; + int prev_alive = 0; gboolean limit_reached_handled = FALSE; /* Scan restrictions related. */ gettimeofday (&start_time, NULL); From c600697e3e5a083372c574980b4fb641e54a6411 Mon Sep 17 00:00:00 2001 From: tuxmaster5000 <837503+tuxmaster5000@users.noreply.github.com> Date: Fri, 16 Apr 2021 07:27:39 +0200 Subject: [PATCH 2/2] Add entry to changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cccdff635..a3a2a273e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Changed ### Removed ### Fixed -- Fix uninitialized variable error of the gcc. [#476]() +- Fix uninitialized variable error of the gcc. [#477](https://github.com/greenbone/gvm-libs/pull/477) [21.10]: https://github.com/greenbone/gvm-libs/compare/gvm-libs-21.04...master