demo: Use allocation for model string.
This commit is contained in:
parent
676877f6ce
commit
4b664cd6ce
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue