ca/client: fix possible null pointer dereference

(found by sonar/cppcheck)
This commit is contained in:
Ralph Lange
2020-06-09 15:48:33 +02:00
parent e923790c41
commit f0e143b907
+1 -1
View File
@@ -605,7 +605,7 @@ void epicsShareAPI ca_signal_formated ( long ca_status, const char *pfilenm,
}
else {
fprintf ( stderr, "CA exception in thread w/o CA ctx: status=%s file=%s line=%d: \n",
ca_message ( ca_status ), pfilenm, lineno );
ca_message ( ca_status ), pfilenm ? pfilenm : "<null>", lineno );
if ( pFormat ) {
vfprintf ( stderr, pFormat, theArgs );
}