Changeset 4673 for lm-sensors/branches/lm-sensors-3.0.0/lib/sysfs.c
- Timestamp:
- 08/16/07 11:56:07 (6 years ago)
- Files:
-
- 1 modified
-
lm-sensors/branches/lm-sensors-3.0.0/lib/sysfs.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/lib/sysfs.c
r4672 r4673 223 223 sensors_fatal_error(__FUNCTION__, "out of memory"); 224 224 225 entry.chip. busname= strdup(dev->path);226 if (!entry.chip. busname)225 entry.chip.path = strdup(dev->path); 226 if (!entry.chip.path) 227 227 sensors_fatal_error(__FUNCTION__, "out of memory"); 228 228 … … 271 271 exit_free: 272 272 free(entry.chip.prefix); 273 free(entry.chip. busname);273 free(entry.chip.path); 274 274 return err; 275 275 } … … 417 417 suffix = "_input"; 418 418 419 snprintf(n, NAME_MAX, "%s/%s%s", name-> busname, the_feature->data.name,419 snprintf(n, NAME_MAX, "%s/%s%s", name->path, the_feature->data.name, 420 420 suffix); 421 421 if ((f = fopen(n, "r"))) { … … 452 452 suffix = "_input"; 453 453 454 snprintf(n, NAME_MAX, "%s/%s%s", name-> busname, the_feature->data.name,454 snprintf(n, NAME_MAX, "%s/%s%s", name->path, the_feature->data.name, 455 455 suffix); 456 456 if ((f = fopen(n, "w"))) {
