Changeset 3647 for trunk/util

Show
Ignore:
Timestamp:
10/10/08 22:43:17 (3 months ago)
Author:
stuge
Message:

flashrom: Check that a filename was specified also when using force read

Signed-off-by: Peter Stuge <peter@…>
Acked-by: Peter Stuge <peter@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/util/flashrom/flashrom.c

    r3562 r3647  
    448448                                printf("flashrom does not support a flash chip named '%s'.\n", chip_to_probe); 
    449449                                printf("Run flashrom -L to view the hardware supported in this flashrom version.\n"); 
     450                                exit(1); 
     451                        } 
     452                        if (!filename) { 
     453                                printf("Error: No filename specified.\n"); 
    450454                                exit(1); 
    451455                        }