diff --git a/CHANGELOG.md b/CHANGELOG.md index 02f72b920..812d0700d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -145,6 +145,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Fix is_cidr6_block() and is_short_range_network(). [#337](https://github.com/greenbone/gvm-libs/pull/337) - Fix S/MIME keylist and improve error handling [#345](https://github.com/greenbone/gvm-libs/pull/345) - Fix interrupted state by sending correct number of dead hosts. [#371](https://github.com/greenbone/gvm-libs/pull/371) +- Fix uninitialized variable error of the gcc. [#477](https://github.com/greenbone/gvm-libs/pull/477) ### Removed - Remove parallel from target options [#347](https://github.com/greenbone/gvm-libs/pull/347) diff --git a/boreas/alivedetection.c b/boreas/alivedetection.c index 79001dc9c..dfa3a1278 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);