Skip to content

Commit

Permalink
remove compile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
netblue30 committed Jan 10, 2022
1 parent 55b986d commit 965af14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fnettrace/hostnames.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

int geoip_calls = 0;
static int geoip_not_found = 0;
static char buf[MAXBUF];

char *retrieve_hostname(uint32_t ip) {
if (geoip_not_found)
Expand All @@ -37,7 +38,6 @@ char *retrieve_hostname(uint32_t ip) {
FILE *fp = popen(cmd, "r");
if (fp) {
char *ptr;
char buf[MAXBUF];
if (fgets(buf, MAXBUF, fp)) {
ptr = strchr(buf, '\n');
if (ptr)
Expand Down

0 comments on commit 965af14

Please sign in to comment.