diff options
author | netblue30 <netblue30@protonmail.com> | 2022-01-10 09:41:26 -0500 |
---|---|---|
committer | netblue30 <netblue30@protonmail.com> | 2022-01-10 09:41:26 -0500 |
commit | 965af14d150f2e96aa0494ed9106e646e40553e4 (patch) | |
tree | e0603c39acc3d11cb9dd89e6a40d2668aa61bc19 /src | |
parent | nettrace (diff) | |
download | firejail-965af14d150f2e96aa0494ed9106e646e40553e4.tar.gz firejail-965af14d150f2e96aa0494ed9106e646e40553e4.tar.zst firejail-965af14d150f2e96aa0494ed9106e646e40553e4.zip |
remove compile warning
Diffstat (limited to 'src')
-rw-r--r-- | src/fnettrace/hostnames.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fnettrace/hostnames.c b/src/fnettrace/hostnames.c index 733d13853..5422166e6 100644 --- a/src/fnettrace/hostnames.c +++ b/src/fnettrace/hostnames.c | |||
@@ -23,6 +23,7 @@ | |||
23 | 23 | ||
24 | int geoip_calls = 0; | 24 | int geoip_calls = 0; |
25 | static int geoip_not_found = 0; | 25 | static int geoip_not_found = 0; |
26 | static char buf[MAXBUF]; | ||
26 | 27 | ||
27 | char *retrieve_hostname(uint32_t ip) { | 28 | char *retrieve_hostname(uint32_t ip) { |
28 | if (geoip_not_found) | 29 | if (geoip_not_found) |
@@ -37,7 +38,6 @@ char *retrieve_hostname(uint32_t ip) { | |||
37 | FILE *fp = popen(cmd, "r"); | 38 | FILE *fp = popen(cmd, "r"); |
38 | if (fp) { | 39 | if (fp) { |
39 | char *ptr; | 40 | char *ptr; |
40 | char buf[MAXBUF]; | ||
41 | if (fgets(buf, MAXBUF, fp)) { | 41 | if (fgets(buf, MAXBUF, fp)) { |
42 | ptr = strchr(buf, '\n'); | 42 | ptr = strchr(buf, '\n'); |
43 | if (ptr) | 43 | if (ptr) |