X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fsession_file.c;h=9f8ee75660556dc6cb4b34ca3a23746fed25a945;hb=0af636bed97c174bea46e61e961eaa1b0b162e0f;hp=bd5b827f41734abf8ceb3056c31c264b26d5ba63;hpb=c7e455625807d31fcaf95f36a23f1afeba033e1f;p=libsigrok.git diff --git a/src/session_file.c b/src/session_file.c index bd5b827f..9f8ee756 100644 --- a/src/session_file.c +++ b/src/session_file.c @@ -170,8 +170,9 @@ SR_API int sr_session_load(const char *filename, struct sr_session **session) for (j = 0; keys[j]; j++) { val = g_key_file_get_string(kf, sections[i], keys[j], NULL); if (!strcmp(keys[j], "capturefile")) { - sdi = sr_dev_inst_new(SR_ST_ACTIVE, NULL, NULL, NULL); + sdi = sr_dev_inst_new(); sdi->driver = &session_driver; + sdi->status = SR_ST_ACTIVE; if (!session_driver_initialized) { /* first device, init the driver */ session_driver_initialized = 1;