Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
local: Do not show error message about missing dump files which were …
…skipped
  • Loading branch information
pali committed Jan 15, 2020
1 parent 52793b7 commit e94279e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.c
Expand Up @@ -421,6 +421,8 @@ int main(int argc, char **argv) {
enum device detected_device = DEVICE_UNKNOWN;
int16_t detected_hwrev = -1;

struct stat st;

int i;
char buf[512];
char * ptr = NULL;
Expand Down Expand Up @@ -1259,7 +1261,7 @@ int main(int argc, char **argv) {

for ( i = 0; i < IMAGE_COUNT; ++i ) {

if ( ! image_tmp_name(i) )
if ( ! image_tmp_name(i) || ( stat(image_tmp_name(i), &st) < 0 && errno == ENOENT ) )
continue;

buf[0] = 0;
Expand Down

0 comments on commit e94279e

Please sign in to comment.