aboutsummaryrefslogtreecommitdiff
path: root/src/anastasis/anastasis-gtk_handle-core-secret-name-changed.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/anastasis/anastasis-gtk_handle-core-secret-name-changed.c')
-rw-r--r--src/anastasis/anastasis-gtk_handle-core-secret-name-changed.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/anastasis/anastasis-gtk_handle-core-secret-name-changed.c b/src/anastasis/anastasis-gtk_handle-core-secret-name-changed.c
index 285251f..6be6b6b 100644
--- a/src/anastasis/anastasis-gtk_handle-core-secret-name-changed.c
+++ b/src/anastasis/anastasis-gtk_handle-core-secret-name-changed.c
@@ -42,10 +42,9 @@ anastasis_gtk_enter_secret_name_entry_changed_cb (GtkEditable *entry,
if (AG_in_action)
return;
- arguments = json_pack ("{s:s}",
- "name",
- name);
- GNUNET_assert (NULL != arguments);
+ arguments = GNUNET_JSON_PACK (
+ GNUNET_JSON_pack_string ("name",
+ name));
AG_freeze ();
AG_in_secret_name_editing = true;
AG_ra = ANASTASIS_redux_action (AG_redux_state,