mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 14:25:39 +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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user