aboutsummaryrefslogtreecommitdiff
path: root/src/zonemaster
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-05 20:40:16 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-05 20:40:16 +0100
commit47c4d6f8b21347dfee591c503ea290913c52ee31 (patch)
tree5c3caadd32e6017371e3352064574cc1a4cb658d /src/zonemaster
parent6c0265bec0fc790093e1acef073d3c1f01da67cc (diff)
downloadgnunet-47c4d6f8b21347dfee591c503ea290913c52ee31.tar.gz
gnunet-47c4d6f8b21347dfee591c503ea290913c52ee31.zip
fix uninit variable causing crash on 0 value
Diffstat (limited to 'src/zonemaster')
-rw-r--r--src/zonemaster/gnunet-service-zonemaster.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/zonemaster/gnunet-service-zonemaster.c b/src/zonemaster/gnunet-service-zonemaster.c
index d61eb723f..5d0a37324 100644
--- a/src/zonemaster/gnunet-service-zonemaster.c
+++ b/src/zonemaster/gnunet-service-zonemaster.c
@@ -710,7 +710,8 @@ run (void *cls,
710 put_interval = INITIAL_PUT_INTERVAL; 710 put_interval = INITIAL_PUT_INTERVAL;
711 zone_publish_time_window_default = DEFAULT_ZONE_PUBLISH_TIME_WINDOW; 711 zone_publish_time_window_default = DEFAULT_ZONE_PUBLISH_TIME_WINDOW;
712 if (GNUNET_OK == 712 if (GNUNET_OK ==
713 GNUNET_CONFIGURATION_get_value_time (c, "gns", 713 GNUNET_CONFIGURATION_get_value_time (c,
714 "zonemaster",
714 "ZONE_PUBLISH_TIME_WINDOW", 715 "ZONE_PUBLISH_TIME_WINDOW",
715 &zone_publish_time_window_default)) 716 &zone_publish_time_window_default))
716 { 717 {
@@ -721,7 +722,8 @@ run (void *cls,
721 } 722 }
722 zone_publish_time_window = zone_publish_time_window_default; 723 zone_publish_time_window = zone_publish_time_window_default;
723 if (GNUNET_OK == 724 if (GNUNET_OK ==
724 GNUNET_CONFIGURATION_get_value_number (c, "gns", 725 GNUNET_CONFIGURATION_get_value_number (c,
726 "zonemaster",
725 "MAX_PARALLEL_BACKGROUND_QUERIES", 727 "MAX_PARALLEL_BACKGROUND_QUERIES",
726 &max_parallel_bg_queries)) 728 &max_parallel_bg_queries))
727 { 729 {