X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=git.c;h=89feb0b6dc9c34902aa7c3c4ac526c646c0e0d84;hb=6e13921b4f7adcc7316a76c0c4955b85b1589a65;hp=f4b0cf611b8a281d51970fa088c7271f0aacf21c;hpb=276328ffb87cefdc515bee5f09916aea6e0244ed;p=git.git diff --git a/git.c b/git.c index f4b0cf611..89feb0b6d 100644 --- a/git.c +++ b/git.c @@ -389,10 +389,9 @@ static void handle_internal_command(int argc, const char **argv) static void execv_dashed_external(const char **argv) { - struct strbuf cmd; + struct strbuf cmd = STRBUF_INIT; const char *tmp; - strbuf_init(&cmd, 0); strbuf_addf(&cmd, "git-%s", argv[0]); /*