diff options
Diffstat (limited to 'divelist-gtk.c')
-rw-r--r-- | divelist-gtk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/divelist-gtk.c b/divelist-gtk.c index 8bc836589..7b7fc3999 100644 --- a/divelist-gtk.c +++ b/divelist-gtk.c @@ -1487,7 +1487,7 @@ static void upload_dives_divelogs(const gboolean selected) * And at least the dialog is customized to indicate * error or success. */ - if (strstr(error, "failed")) + if (error && strstr(error, "failed")) type = GTK_MESSAGE_ERROR; else type = GTK_MESSAGE_INFO; |