Code

Remove duplicate getenv(DB_ENVIRONMENT) call
authorLinus Torvalds <torvalds@ppc970.osdl.org.(none)>
Tue, 19 Apr 2005 21:11:06 +0000 (14:11 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org.(none)>
Tue, 19 Apr 2005 21:11:06 +0000 (14:11 -0700)
Noted by Tony Luck.

init-db.c

index 65898fa582e973b1cb98171cd4494598dd8bc36d..b002dc653c956a5a91c8d059e023996677f8b8e1 100644 (file)
--- a/init-db.c
+++ b/init-db.c
@@ -7,7 +7,7 @@
 
 int main(int argc, char **argv)
 {
-       char *sha1_dir = getenv(DB_ENVIRONMENT), *path;
+       char *sha1_dir, *path;
        int len, i;
 
        if (mkdir(".git", 0755) < 0) {