Преглед на файлове

Initialize rate_limited to false in directory_get_from_hs_dir()

Neel Chauhan преди 6 години
родител
ревизия
144bc5026e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/feature/rend/rendclient.c

+ 1 - 1
src/feature/rend/rendclient.c

@@ -469,7 +469,7 @@ directory_get_from_hs_dir(const char *desc_id,
 
   /* Automatically pick an hs dir if none given. */
   if (!rs_hsdir) {
-    bool rate_limited;
+    bool rate_limited = false;
 
     /* Determine responsible dirs. Even if we can't get all we want, work with
      * the ones we have. If it's empty, we'll notice in hs_pick_hsdir(). */