Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Web update: do not crash on zero length files

  • Loading branch information...
commit 0f0f134919390e9116da6a034544fc0b9993dd61 1 parent f1c71e1
@sbourdeauducq sbourdeauducq authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/flash.c
View
3  src/flash.c
@@ -105,7 +105,8 @@ static double *d_progress;
static int progress_callback(void *d_progress, double t, double d, double ultotal, double ulnow)
{
- flash_progress = 100.0d*d/t;
+ if(t != 0.0d)
+ flash_progress = 100.0d*d/t;
return 0;
}
Please sign in to comment.
Something went wrong with that request. Please try again.