summaryrefslogtreecommitdiffstats
path: root/hcid/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/main.c')
-rw-r--r--hcid/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/main.c b/hcid/main.c
index dd3367b7..567dfab3 100644
--- a/hcid/main.c
+++ b/hcid/main.c
@@ -80,7 +80,7 @@ struct device_opts *alloc_device_opts(char *ref)
exit(1);
}
- device->ref = ref;
+ device->ref = strdup(ref);
device->next = device_list;
device_list = device;