{"thread":{"id":"132","subject":"[PATCH 1/8] init-db.c: [RESEND] remove redundant getenv call","startedAt":"2005-04-19T09:09:39Z","lastAt":"2005-04-19T09:09:39Z","messageCount":1,"participants":["Zach Welch"],"isPatch":true,"patchVersion":1,"patchTotal":8},"messages":[{"id":"800","messageId":"mailbox-23311-1113901779-721411@spoon","threadId":"132","inReplyTo":null,"subject":"[PATCH 1/8] init-db.c: [RESEND] remove redundant getenv call","fromName":"Zach Welch","fromEmail":"zw@superlucidity.net","sentAt":"2005-04-19T09:09:39Z","receivedAt":"2005-04-19T09:09:39Z","isPatch":true,"sender":{"key":"zw@superlucidity.net","avatar":null},"body":"init-db calls getenv(DB_ENVIRONMENT) twice.  Once should be enough.\n\nThis patch applies on top of:\n        [PATCH 0/8] init-db.c cleanup, add INDEX_FILE_DIRECTORY support\n init-db.c |    3 +--\n 1 files changed, 1 insertion(+), 2 deletions(-)\nSigned-Off-By: Zach Welch <zw@superlucidity.net>\n\nSigned-Off-By: Tony Luck <tony.luck@intel.com>\n\n--- a/init-db.c\t2005-04-14 11:01:52.000000000 -0700\n+++ b/init-db.c\t2005-04-14 11:01:52.000000000 -0700\n@@ -7,7 +7,7 @@\n \n int main(int argc, char **argv)\n {\n-\tchar *sha1_dir = getenv(DB_ENVIRONMENT), *path;\n+\tchar *sha1_dir, *path;\n \tint len, i;\n \n \tif (mkdir(\".git\", 0755) < 0) {\n-\n\n"}]}