Skip to content

Commit

Permalink
config: remove useless assignment
Browse files Browse the repository at this point in the history
v1.7.9-8-g270a344 (config: stop using config_exclusive_filename) replaced
config_exclusive_filename with given_config_file.  In one case this
resulted in a self-assignment, which is reported by clang as a warning.
Remove the useless code.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
René Scharfe authored and gitster committed Mar 28, 2012
1 parent 455cf26 commit b3065bd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions builtin/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,6 @@ int cmd_config(int argc, const char **argv, const char *prefix)
xstrdup(prefix_filename(prefix,
strlen(prefix),
given_config_file));
else
given_config_file = given_config_file;
}

if (respect_includes == -1)
Expand Down

0 comments on commit b3065bd

Please sign in to comment.