2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 22:05:11 +00:00

Fix exit code in error case (for example no sensors found.) Patch from

Andre Prendel.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5627 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2009-01-28 13:10:21 +00:00
parent cf09a7e43a
commit 496b15a644
2 changed files with 3 additions and 2 deletions

View File

@@ -243,7 +243,7 @@ static void print_bus_list(void)
int main(int argc, char *argv[])
{
int c, res, i, error, do_bus_list;
int c, res, i, error = 0, do_bus_list;
const char *config_file_name = NULL;
struct option long_opts[] = {
@@ -344,5 +344,5 @@ int main(int argc, char *argv[])
exit:
sensors_cleanup();
exit(res);
exit(error);
}