diff options
Diffstat (limited to 'util/flashrom')
-rw-r--r-- | util/flashrom/flashrom.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util/flashrom/flashrom.c b/util/flashrom/flashrom.c index a6d6e9148c..093f2eac1f 100644 --- a/util/flashrom/flashrom.c +++ b/util/flashrom/flashrom.c @@ -449,6 +449,10 @@ int main(int argc, char *argv[]) printf("Run flashrom -L to view the hardware supported in this flashrom version.\n"); exit(1); } + if (!filename) { + printf("Error: No filename specified.\n"); + exit(1); + } size = flashes[0]->total_size * 1024; buf = (uint8_t *) calloc(size, sizeof(char)); |