demo: Use allocation for model string.

This commit is contained in:
Bert Vermeulen 2014-11-14 11:37:11 +01:00
parent 676877f6ce
commit 4b664cd6ce
1 changed files with 1 additions and 1 deletions

View File

@ -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));