From 4b664cd6ce7792b58190cdcc92347ded44a8a46a Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Fri, 14 Nov 2014 11:37:11 +0100 Subject: [PATCH] demo: Use allocation for model string. --- src/hardware/demo/demo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/demo/demo.c b/src/hardware/demo/demo.c index b5cb276c..f06e8793 100644 --- a/src/hardware/demo/demo.c +++ b/src/hardware/demo/demo.c @@ -292,7 +292,7 @@ static GSList *scan(GSList *options) sdi = sr_dev_inst_new(); sdi->status = SR_ST_ACTIVE; - sdi->model = "Demo device"; + sdi->model = g_strdup("Demo device"); sdi->driver = di; devc = g_malloc(sizeof(struct dev_context));