Browse Source

Fix C89 warning (since Tor 0.2.4-5 still care about that.)

Nick Mathewson 6 years ago
parent
commit
4ee48cb434
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/geoip.c

+ 1 - 1
src/or/geoip.c

@@ -126,6 +126,7 @@ geoip_parse_entry(const char *line, sa_family_t family)
   tor_addr_t low_addr, high_addr;
   char c[3];
   char *country = NULL;
+  char buf[512];
 
   if (!geoip_countries)
     init_geoip_countries();
@@ -145,7 +146,6 @@ geoip_parse_entry(const char *line, sa_family_t family)
   if (*line == '#')
     return 0;
 
-  char buf[512];
   if (family == AF_INET) {
     unsigned int low, high;
     if (tor_sscanf(line,"%u,%u,%2s", &low, &high, c) == 3 ||