diff options
author | Ali H. Fardan <raiz@firemail.cc> | 2016-09-14 03:35:53 +0300 |
---|---|---|
committer | Ali H. Fardan <raiz@firemail.cc> | 2016-09-14 03:35:53 +0300 |
commit | bc38677f4734e9239d6f2dc3df8e4c56c330167a (patch) | |
tree | 5c8cc01361431acfcd54c0bae2cc6fc560c04669 /slstatus.c | |
parent | f28e2682fdea5991891bf5f784292dc8fe7603a5 (diff) |
malloc sucks, you know?
Diffstat (limited to 'slstatus.c')
-rw-r--r-- | slstatus.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -119,12 +119,6 @@ battery_state(const char *battery) 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) { |