coverity fixes

This commit is contained in:
Hisham Muhammad
2009-10-16 20:03:18 +00:00
parent dd86b9b646
commit 1e124da059
2 changed files with 3 additions and 3 deletions

View File

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