From f0e143b907acd5606086048236d76b01addd178c Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Tue, 9 Jun 2020 11:02:18 +0200 Subject: [PATCH] ca/client: fix possible null pointer dereference (found by sonar/cppcheck) --- src/ca/client/access.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ca/client/access.cpp b/src/ca/client/access.cpp index a36899c02..ec873dd5b 100644 --- a/src/ca/client/access.cpp +++ b/src/ca/client/access.cpp @@ -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 : "", lineno ); if ( pFormat ) { vfprintf ( stderr, pFormat, theArgs ); }