chiark / gitweb /
Eject a bunch of never-read variables, to reduce noise in scanned
[disorder] / lib / configuration.c
index 0b173d4113e22098ff0c52d017725dd958bfe245..88cfbf280a6febfaca350b3492942760352247ad 100644 (file)
@@ -835,9 +835,7 @@ static int validate_positive(const struct config_state *cs,
 static int validate_isauser(const struct config_state *cs,
                            int attribute((unused)) nvec,
                            char **vec) {
-  struct passwd *pw;
-
-  if(!(pw = getpwnam(vec[0]))) {
+  if(!getpwnam(vec[0])) {
     disorder_error(0, "%s:%d: no such user as '%s'", cs->path, cs->line, vec[0]);
     return -1;
   }