Skip to content

Commit

Permalink
whhops again.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanHenson committed Oct 17, 2023
1 parent da8cb8f commit 6194ec0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/linux/system_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ int aws_system_environment_load_platform_impl(struct aws_system_environment *env
aws_byte_buf_init_from_file_with_size_hint(
&env->product_name, env->allocator, "/sys/devices/virtual/dmi/id/product_name", 32 /*size_hint*/);

struct ifaddrs *addrs;
struct ifaddrs *iterator;
iterator = addrs;
struct ifaddrs *addrs = NULL;
struct ifaddrs *iterator = NULL;

getifaddrs(&addrs);

iterator = addrs;

while(iterator) {
if (iterator->ifa_addr && iterator->ifa_addr->sa_family == AF_PACKET) {
struct aws_string *device_name = aws_string_new_from_c_str(env->allocator, iterator->ifa_name);
Expand Down

0 comments on commit 6194ec0

Please sign in to comment.