* [PATCH 1/1] git: remove redundant getenv() in init-db
@ 2005-04-14 18:30 tony.luck
0 siblings, 0 replies; only message in thread
From: tony.luck @ 2005-04-14 18:30 UTC (permalink / raw)
To: Linus Torvalds; +Cc: git
From: Tony Luck <tony.luck@intel.com>
init-db calls getenv(DB_ENVIRONMENT) twice. Once should be enough.
Signed-off-by: Tony Luck <tony.luck@intel.com>
---
init-db.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
--- init-db.c
+++ init-db.c 2005-04-14 11:01:52.000000000 -0700
@@ -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) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-14 18:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-14 18:30 [PATCH 1/1] git: remove redundant getenv() in init-db tony.luck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).