fix some compiler warnings from Open/FreeBSD
MODIFY
src/afl-forkserver.c
src/afl-forkserver.c
@@ -107,7 +107,7 @@ u8 *forkserver_DMS(u64 val) {
}
-list_t fsrv_list = {0};
+list_t fsrv_list = {.element_prealloc_count = 0};
/* the timeout handler */
@@ -306,6 +306,7 @@ void afl_fsrv_start(afl_forkserver_t *fsrv, char **argv) {
/* Wait for the fork server to come up, but don't wait too long. */
+ rlen = 0;
if (fsrv->exec_tmout) {
fd_set readfds;

MODIFY
src/afl-fuzz-cmplog.c
src/afl-fuzz-cmplog.c
@@ -182,6 +182,7 @@ void init_cmplog_forkserver(afl_state_t *afl) {
/* Wait for the fork server to come up, but don't wait too long. */
+ rlen = 0;
if (afl->fsrv.exec_tmout) {
fd_set readfds;

MODIFY
src/afl-fuzz-globals.c
src/afl-fuzz-globals.c
@@ -71,7 +71,7 @@ static void init_mopt_globals(afl_state_t *afl) {
/* A global pointer to all instances is needed (for now) for signals to arrive
*/
-list_t afl_states = {0};
+list_t afl_states = {.element_prealloc_count = 0};
/* Initializes an afl_state_t. */

fix some compiler warnings from Open/FreeBSD