mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 20:24:35 +03:00
coverity fixes
This commit is contained in:
@ -19,7 +19,7 @@ int UptimeMeter_attributes[] = {
|
||||
};
|
||||
|
||||
static void UptimeMeter_setValues(Meter* this, char* buffer, int len) {
|
||||
double uptime;
|
||||
double uptime = 0;
|
||||
FILE* fd = fopen(PROCDIR "/uptime", "r");
|
||||
fscanf(fd, "%lf", &uptime);
|
||||
fclose(fd);
|
||||
|
Reference in New Issue
Block a user