From: Bert Vermeulen Date: Fri, 14 Nov 2014 10:37:11 +0000 (+0100) Subject: demo: Use allocation for model string. X-Git-Tag: libsigrok-0.4.0~774 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4b664cd6ce7792b58190cdcc92347ded44a8a46a;p=libsigrok.git demo: Use allocation for model string. --- 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));