From 80c1c9e0fd25fce41f282778d309083a095cea76 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 5 Jan 2018 05:53:44 -0800 Subject: [PATCH] SCP: Silence Coverity warning --- scp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scp.c b/scp.c index 17606dbd..632aabdf 100644 --- a/scp.c +++ b/scp.c @@ -10879,7 +10879,8 @@ if (switches & EXP_TYP_REGEX) { } else { sim_data_trace(exp->dptr, exp->dptr->units, (const uint8 *)match, "", strlen(match)+1, "Expect Match String", exp->dbit); - sim_decode_quoted_string (match, match_buf, &match_size); + /* quoted string was validated above, this decode operation will always succeed */ + (void)sim_decode_quoted_string (match, match_buf, &match_size); ep->match = match_buf; ep->size = match_size; }