diff options
author | hwspeedy <ns@bigbear.dk> | 2024-05-24 10:20:25 +0200 |
---|---|---|
committer | hwspeedy <ns@bigbear.dk> | 2024-05-24 10:20:25 +0200 |
commit | a8ccc2aa89c78108566c67b9e853797ea451f9c8 (patch) | |
tree | 9499a58b04a6baf1ab4a0741f7a31d3ddbc0fbc8 /modules/computer/uptime.c | |
parent | 25c366a8074af72c0811a960b947302bed036669 (diff) |
FIX GCC Warnings, added more checking to gcc flags
Diffstat (limited to 'modules/computer/uptime.c')
-rw-r--r-- | modules/computer/uptime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/computer/uptime.c b/modules/computer/uptime.c index f213442f..d12d1c2f 100644 --- a/modules/computer/uptime.c +++ b/modules/computer/uptime.c @@ -27,7 +27,7 @@ computer_get_uptime(void) if ((procuptime = fopen("/proc/uptime", "r")) != NULL) { int c=fscanf(procuptime, "%lu", &minutes); - ui->minutes = minutes / 60; + if(c) ui->minutes = minutes / 60; fclose(procuptime); } else { g_free(ui); |