The Fluke 45 probe routine tries to detect whether the serial port is
"in echo mode" (which already is questionable before the IDN query).
In the absence of a response, the library segfaults. Fix it.
sdi->conn = scpi;
/* Test for serial port ECHO enabled. */
+ response = NULL;
sr_scpi_get_string(scpi, "ECHO-TEST", &response);
- if (strcmp(response, "ECHO-TEST") == 0) {
+ if (response && strcmp(response, "ECHO-TEST") == 0) {
sr_err("Serial port ECHO is ON. Please turn it OFF!");
return NULL;
}