[wiki] [sites] Another close to devfd. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Sat, 22 Dec 2012 20:21:35 +0100

commit f88d6c0c01622f958e121aabb6a99985a631f0e2
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Sat Dec 22 20:18:55 2012 +0100

    Another close to devfd.

diff --git a/dwm.suckless.org/dwmstatus/dwmstatus-netusage.c b/dwm.suckless.org/dwmstatus/dwmstatus-netusage.c
index f026b7d..6d5d2e5 100644
--- a/dwm.suckless.org/dwmstatus/dwmstatus-netusage.c
+++ b/dwm.suckless.org/dwmstatus/dwmstatus-netusage.c
_AT_@ -71,6 +71,7 @@ parse_netdev(unsigned long long int *receivedabs, unsigned long long int *sentab
                 // With thanks to the conky project at http://conky.sourceforge.net/
                 sscanf(eth0start + 6, "%llu %*d %*d %*d %*d %*d %*d %*d %llu",\
                        receivedabs, sentabs);
+ fclose(devfd);
                 free(buf);
                 return 0;
             }
Received on Sat Dec 22 2012 - 20:21:35 CET

This archive was generated by hypermail 2.3.0 : Sat Dec 22 2012 - 20:24:07 CET