1
0

malloc sucks, you know?

This commit is contained in:
Ali H. Fardan 2016-09-14 03:35:53 +03:00
parent f28e2682fd
commit bc38677f47

View File

@ -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) {