X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fdemo%2Fdemo.c;h=b20239a1d137e5b13364f691c2f64ab666911ac5;hb=c0eea11c4535e071c72b357fa7e2d1288104c134;hp=df6a2543bad4d2190ba05d1a5f892c3f50cab8db;hpb=bd36d826d4b9916034c6268919e2a72a0d7ea000;p=libsigrok.git diff --git a/hardware/demo/demo.c b/hardware/demo/demo.c index df6a2543..b20239a1 100644 --- a/hardware/demo/demo.c +++ b/hardware/demo/demo.c @@ -154,6 +154,7 @@ static int hw_init(struct sr_context *sr_ctx) sr_err("Driver context malloc failed."); return SR_ERR_MALLOC; } + drvc->sr_ctx = sr_ctx; di->priv = drvc;