The prefix was missing the first time the uptime was printed in the status output.
free(new);
}
- new = uptime_str();
+ tmp = uptime_str();
+ new = make_message("%s: %s\n", status_item_list[SI_AUDIOD_UPTIME],
+ tmp);
+ free(tmp);
old = stat_item_values[SI_AUDIOD_UPTIME];
if (!old || strcmp(old, new)) {
free(old);
- tmp = make_message("%s: %s\n",
- status_item_list[SI_AUDIOD_UPTIME], new);
- stat_client_write(tmp, SI_AUDIOD_UPTIME);
- free(tmp);
+ stat_client_write(new, SI_AUDIOD_UPTIME);
stat_item_values[SI_AUDIOD_UPTIME] = new;
} else
free(new);