libsigrok/hardware/common/dmm
Alexandru Gagniuc 47eda193b2 rs9lcd: Fix segfault with unusual modes.
Some unusual modes required re-parsing the value. Instead of assigning the
re-parsed value to *floatval, it was reassigned directly to *analog->data;
however, analog->data is not initialized at this point, causing a segfault.
This situation was created when moving the radioshack-dmm code to serial-dmm,
with the segfault not being observed at that time.

Do not write directly to analog->data, but instead use the intermediate
variable rawval.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-12-25 23:43:30 +01:00
..
Makefile.am radioshack-dmm: Separate protocol parser from driver 2012-12-02 22:18:22 +01:00
fs9721.c fs9721: Pass 'info' as a void pointer. 2012-12-02 14:21:17 +01:00
fs9922.c Initial support for UNI-T DMMs. 2012-10-27 23:17:30 +02:00
metex14.c metex14: Add dB mode and hFE mode support. 2012-12-02 14:22:51 +01:00
rs9lcd.c rs9lcd: Fix segfault with unusual modes. 2012-12-25 23:43:30 +01:00