Changeset 4680

Show
Ignore:
Timestamp:
08/17/07 13:30:25 (6 years ago)
Author:
khali
Message:

Fix error message when a chip is specified on the command line
with no prefix and that chip isn't found.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/sensors/main.c

    r4615 r4680  
    248248    exit(error); 
    249249  } else { 
    250     if(chips[0].prefix == SENSORS_CHIP_NAME_PREFIX_ANY) 
     250    if (optind == argc) /* No chip name on command line */ 
    251251            fprintf(stderr, 
    252252                    "No sensors found!\n"