]> sigrok.org Git - libsigrok.git/commit
scpi: scpi_cmd_resp() shouldn't return SR_OK without filling the gvar
authorAurelien Jacobs <redacted>
Sun, 20 Sep 2015 14:15:01 +0000 (16:15 +0200)
committerAurelien Jacobs <redacted>
Sun, 20 Sep 2015 14:15:01 +0000 (16:15 +0200)
commit06f63a749ea15ae88e8183404a0d6e3d1fd85de3
treea600141f959480193f19937889ffa7caeb10c694
parentbaed0211a1ecada69c5ab53cf979e2e543a0ceaa
scpi: scpi_cmd_resp() shouldn't return SR_OK without filling the gvar

scpi-pps at line 212 assumes that an SR_OK return means that the gvar
is valid, which leads to the following error:
** GLib:ERROR:/build/glib2.0-2.45.8/./glib/gvarianttypeinfo.c:184:g_variant_type_info_check: assertion failed: (0 <= index && index < 24)
src/scpi/helpers.c