Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
t7501-commit.sh: explicitly check that -F prevents invoking the editor
[gitweb.git]
/
exec_cmd.c
diff --git
a/exec_cmd.c
b/exec_cmd.c
index ce6741eb682b59ad638c7bee6ca31e2fcd53f281..cdd35f91954bdc751455e1083a0612a21eeadc67 100644
(file)
--- a/
exec_cmd.c
+++ b/
exec_cmd.c
@@
-59,9
+59,7
@@
static void add_path(struct strbuf *out, const char *path)
void setup_path(void)
{
const char *old_path = getenv("PATH");
- struct strbuf new_path;
-
- strbuf_init(&new_path, 0);
+ struct strbuf new_path = STRBUF_INIT;
add_path(&new_path, argv_exec_path);
add_path(&new_path, getenv(EXEC_PATH_ENVIRONMENT));