app-tools, app: gimp-debug-tool crashing with NULL release_date.

The crash dialog was failing to be created when using the last version
of GIMP!
This commit is contained in:
Jehan 2020-03-27 19:44:41 +01:00
parent dd705e21c0
commit d76c8e8cc3
2 changed files with 10 additions and 6 deletions

View file

@ -85,7 +85,7 @@ main (int argc,
gtk_init (&argc, &argv);
dialog = gimp_critical_dialog_new (_("GIMP Crash Debug"), last_version,
g_ascii_strtoll (release_date, NULL, 10));
release_date ? g_ascii_strtoll (release_date, NULL, 10) : -1);
gimp_critical_dialog_add (dialog, error, trace, TRUE, program,
g_ascii_strtoull (pid, NULL, 10));
g_free (error);