]> git.sur5r.net Git - i3/i3status/commitdiff
Bugfix: close the filehandle when done
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 1 Oct 2009 16:18:46 +0000 (18:18 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 1 Oct 2009 16:18:46 +0000 (18:18 +0200)
src/get_wireless_info.c

index 77bb995b9b945f627968d5599be72c016d21649c..1f13764b46b5c3368e8f47f032a3d0bc6643b2ac 100644 (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