From: Fabian Keil Date: Tue, 19 May 2009 17:46:24 +0000 (+0000) Subject: Fix clang warning: Value stored to 'err' is never read. X-Git-Tag: v_3_0_13~81 X-Git-Url: http://www.privoxy.org/gitweb/-%22http:/sourceforge.net/static/git-favicon.png?a=commitdiff_plain;h=75ef6c81b5d2ec10ce8fed9e63805a24151fef13;p=privoxy.git Fix clang warning: Value stored to 'err' is never read. We don't need to check the return value because we're detecting errors with the (NULL == filename) check. --- diff --git a/cgiedit.c b/cgiedit.c index 49d9ee06..3ab55b58 100644 --- a/cgiedit.c +++ b/cgiedit.c @@ -1,4 +1,4 @@ -const char cgiedit_rcs[] = "$Id: cgiedit.c,v 1.65 2009/03/08 14:19:22 fabiankeil Exp $"; +const char cgiedit_rcs[] = "$Id: cgiedit.c,v 1.66 2009/05/16 13:27:20 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgiedit.c,v $ @@ -1588,7 +1588,7 @@ jb_err edit_read_file(struct client_state *csp, * Probably an old-school URL like * http://config.privoxy.org/edit-actions-list?f=default */ - err = get_file_name_param(csp, parameters, "f", &filename); + get_file_name_param(csp, parameters, "f", &filename); } if (NULL == filename || stat(filename, statbuf) < 0)