X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=exec_cmd.c;h=cdd35f91954bdc751455e1083a0612a21eeadc67;hb=28da86a58d7861626eb9d33a1bcfa3e1e79a4d13;hp=ce6741eb682b59ad638c7bee6ca31e2fcd53f281;hpb=1b118da8bd1878d78589afd9f755b9d52a9579ad;p=git.git diff --git a/exec_cmd.c b/exec_cmd.c index ce6741eb6..cdd35f919 100644 --- 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));