malloc sucks, you know?
Ali H. Fardan raiz@firemail.cc
Wed, 14 Sep 2016 03:35:53 +0300
1 files changed,
0 insertions(+),
6 deletions(-)
jump to
M
slstatus.c
→
slstatus.c
@@ -119,12 +119,6 @@ {
char state[12]; FILE *fp; - if (!state) { - warn("Failed to get battery state."); - return smprintf(UNKNOWN_STR); - } - - ccat(3, "/sys/class/power_supply/", battery, "/status"); fp = fopen(concat, "r"); if (fp == NULL) {