Fix clang warning: Value stored to 'err' is never read.
authorFabian Keil <fk@fabiankeil.de>
Tue, 19 May 2009 17:46:24 +0000 (17:46 +0000)
committerFabian Keil <fk@fabiankeil.de>
Tue, 19 May 2009 17:46:24 +0000 (17:46 +0000)
We don't need to check the return value because we're
detecting errors with the (NULL == filename) check.

cgiedit.c

index 49d9ee0..3ab55b5 100644 (file)
--- 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)