summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/irmd/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c
index e28e6a28..9a072382 100644
--- a/src/irmd/main.c
+++ b/src/irmd/main.c
@@ -70,7 +70,6 @@ static void create_ipcp(struct irm * instance,
{
int pid;
struct name_to_pid_entry * tmp;
- rina_name_t * ipcp_name = NULL;
pid = ipcp_create(name, ipcp_type);
if (pid == 0) {
@@ -85,7 +84,7 @@ static void create_ipcp(struct irm * instance,
INIT_LIST_HEAD(&tmp->next);
tmp->pid = pid;
- tmp->name = name_dup(ipcp_name);
+ tmp->name = name_dup(&name);
if (tmp->name == NULL) {
free(tmp);
return;