X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fprint_mem.c;h=a37fa2905c142fd9c65925b0cd83ca86e5faded8;hb=4ea804b751f9394b7b10b520212169a491c698a6;hp=46523d6ce67c48560622eb0d787bd2e798e6feca;hpb=b850f5852d0e455c246827a603ac28577a70428d;p=i3%2Fi3status diff --git a/src/print_mem.c b/src/print_mem.c index 46523d6..a37fa29 100644 --- a/src/print_mem.c +++ b/src/print_mem.c @@ -39,10 +39,9 @@ static int print_bytes_human(char *outwalk, uint64_t bytes) { * */ static long memory_absolute(const long mem_total, const char *size) { - long mem_absolute = -1; char *endptr = NULL; - mem_absolute = strtol(size, &endptr, 10); + long mem_absolute = strtol(size, &endptr, 10); if (endptr) { while (endptr[0] != '\0' && isspace(endptr[0]))