mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix crash when applying a non-edit of nicknames
As reported by Henrik, there was a crash lurking in edit_dc_nickname code. Invoking the dialog and selecting apply without changes exposed it neatly. This is a one line fix. Signed off by Amit Chaudhuri <amit.k.chaudhuri@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e618a245b9
commit
c149921df4
1 changed files with 1 additions and 1 deletions
|
@ -1283,7 +1283,7 @@ static void edit_dc_nicknames(GtkWidget *w, gpointer data)
|
|||
}
|
||||
gtk_widget_destroy(confirm);
|
||||
}
|
||||
if (res == GTK_RESPONSE_APPLY && holdnicknames->model != NULL ) {
|
||||
if (res == GTK_RESPONSE_APPLY && holdnicknames && holdnicknames->model != NULL ) {
|
||||
struct device_info * walk = holdnicknames;
|
||||
struct device_info * release = holdnicknames;
|
||||
struct device_info * track = holdnicknames->next;
|
||||
|
|
Loading…
Add table
Reference in a new issue