diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-16 21:31:39 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-16 21:31:39 +0000 |
commit | e51b557788170d61e2090028de5837f1577c0728 (patch) | |
tree | faaa8a59a3de249b5976b50812ec8554f980230e | |
parent | efbf21df580b064a37d71b368836b1a0d1a62969 (diff) | |
download | gnunet-gtk-e51b557788170d61e2090028de5837f1577c0728.tar.gz gnunet-gtk-e51b557788170d61e2090028de5837f1577c0728.zip |
-do not crash during shutdown
-rw-r--r-- | src/namestore/gnunet-namestore-gtk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/namestore/gnunet-namestore-gtk.c b/src/namestore/gnunet-namestore-gtk.c index 4b86b45e..8c3ab0b3 100644 --- a/src/namestore/gnunet-namestore-gtk.c +++ b/src/namestore/gnunet-namestore-gtk.c | |||
@@ -2070,6 +2070,8 @@ gnunet_namestore_gtk_pseu_entry_changed_cb (GtkEditable *editable, | |||
2070 | unsigned int rd_count; | 2070 | unsigned int rd_count; |
2071 | struct OperationContext *oc; | 2071 | struct OperationContext *oc; |
2072 | 2072 | ||
2073 | if (NULL == namestore) | ||
2074 | return; /* during shutdown */ | ||
2073 | pseu = gtk_entry_get_text (GTK_ENTRY (editable)); | 2075 | pseu = gtk_entry_get_text (GTK_ENTRY (editable)); |
2074 | if ( (NULL != current_pseudonym) && | 2076 | if ( (NULL != current_pseudonym) && |
2075 | (0 == strcmp (pseu, | 2077 | (0 == strcmp (pseu, |