aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_account.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_account.c')
-rw-r--r--src/gnunet_chat_account.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gnunet_chat_account.c b/src/gnunet_chat_account.c
index 09e48f8..53163ae 100644
--- a/src/gnunet_chat_account.c
+++ b/src/gnunet_chat_account.c
@@ -23,6 +23,7 @@
23 */ 23 */
24 24
25#include "gnunet_chat_account.h" 25#include "gnunet_chat_account.h"
26#include "gnunet_chat_util.h"
26 27
27struct GNUNET_CHAT_Account* 28struct GNUNET_CHAT_Account*
28account_create_from_ego(struct GNUNET_IDENTITY_Ego *ego, 29account_create_from_ego(struct GNUNET_IDENTITY_Ego *ego,
@@ -33,7 +34,9 @@ account_create_from_ego(struct GNUNET_IDENTITY_Ego *ego,
33 struct GNUNET_CHAT_Account *account = GNUNET_new(struct GNUNET_CHAT_Account); 34 struct GNUNET_CHAT_Account *account = GNUNET_new(struct GNUNET_CHAT_Account);
34 35
35 account->ego = ego; 36 account->ego = ego;
36 account->name = GNUNET_strdup(name); 37 account->name = NULL;
38
39 util_set_name_field(name, &(account->name));
37 40
38 account->user_pointer = NULL; 41 account->user_pointer = NULL;
39 42