Bugfix: close the filehandle when done

This commit is contained in:
Michael Stapelberg 2009-10-01 18:18:46 +02:00
parent b2292e770e
commit c4a3d64b38

View File

@ -20,6 +20,7 @@ const char *get_wireless_essid() {
if (iw_get_basic_config(skfd, wlan_interface, &cfg) >= 0)
snprintf(part, sizeof(part), "%s", cfg.essid);
else part[0] = '\0';
(void)close(skfd);
#else
part[0] = '\0';
#endif