From abcc2b0c1d0b912c66fc4241f943b602e30ce9b0 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 18 Oct 2014 11:30:40 +0000 Subject: [PATCH] jb_err_to_string(): Only check for internal errors once Silences a Coverity complaint about unreachable code. CID 66387. --- errlog.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/errlog.c b/errlog.c index 33c56bf8..f493ac6e 100644 --- a/errlog.c +++ b/errlog.c @@ -1,4 +1,4 @@ -const char errlog_rcs[] = "$Id: errlog.c,v 1.120 2014/06/02 06:22:20 fabiankeil Exp $"; +const char errlog_rcs[] = "$Id: errlog.c,v 1.121 2014/06/03 10:24:00 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/errlog.c,v $ @@ -1001,9 +1001,6 @@ const char *jb_err_to_string(int jb_error) return "File has been modified outside of the CGI actions editor."; case JB_ERR_COMPRESS: return "(De)compression failure"; - default: - assert(0); - return "Unknown error"; } assert(0); return "Internal error"; -- 2.39.2