瀏覽代碼

One more fix for bug 5049.

Nick Mathewson 12 年之前
父節點
當前提交
5b0977df31
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/or/control.c

+ 3 - 1
src/or/control.c

@@ -4109,11 +4109,13 @@ control_event_buildtimeout_set(const circuit_build_times_t *cbt,
                         buildtimeout_set_event_t type)
 {
   const char *type_string = NULL;
-  double qnt = circuit_build_times_quantile_cutoff();
+  double qnt;
 
   if (!control_event_is_interesting(EVENT_BUILDTIMEOUT_SET))
     return 0;
 
+  qnt = circuit_build_times_quantile_cutoff();
+
   switch (type) {
     case BUILDTIMEOUT_SET_EVENT_COMPUTED:
       type_string = "COMPUTED";