Changeset 4989
- Timestamp:
- 10/25/07 11:52:46 (6 years ago)
- Location:
- lm-sensors/branches/lm-sensors-3.0.0
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
lib/init.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/CHANGES
r4988 r4989 5 5 libsensors: Add a default configuration file 6 6 Fix memory leaks on initialization error 7 Make the configuration file optional 7 8 sensord: Reload config on SIGHUP rather than automatically 8 9 No default configuration file name -
lm-sensors/branches/lm-sensors-3.0.0/lib/init.c
r4988 r4989 50 50 /* No configuration provided, use default */ 51 51 input = fopen(DEFAULT_CONFIG_FILE, "r"); 52 if (!input) 53 goto exit_cleanup; 54 if (sensors_scanner_init(input) || 55 sensors_yyparse()) { 52 if (input) { 53 if (sensors_scanner_init(input) || 54 sensors_yyparse()) { 55 fclose(input); 56 goto exit_cleanup; 57 } 56 58 fclose(input); 57 goto exit_cleanup;58 59 } 59 fclose(input);60 60 } 61 61
