X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fhardware%2Fdemo%2Fdemo.c;h=f06e879342cdcae2dea1946df4fd78f5f9e9ce71;hb=4b664cd6ce7792b58190cdcc92347ded44a8a46a;hp=b5cb276c9747f4011ed42ef8917abe1cf3866aa5;hpb=676877f6cee574f2a32805b946e56710db502264;p=libsigrok.git 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));