Avoid a crash upon errors

This commit is contained in:
Pierre Pronchery 2019-12-18 05:47:12 +01:00
parent 394da2d085
commit bea4442c44

View File

@ -368,7 +368,8 @@ static int _error_do(Progress * progress, char const * message,
{
GtkWidget * dialog;
progress->ret = ret;
if(progress != NULL)
progress->ret = ret;
if(ret < 0)
{
fputs(PROGNAME_PROGRESS ": ", stderr);