]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/submodule--helper.c
use CHILD_PROCESS_INIT to initialize automatic variables
authorRené Scharfe <l.s.r@web.de>
Fri, 5 Aug 2016 20:38:44 +0000 (22:38 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Aug 2016 22:10:05 +0000 (15:10 -0700)
commit542aa25d9748c381a27074fb08614d4cb4713984
tree2ab5cc63bf15d1eceb26ffd7c52924091b0b6e6a
parentc6b0597e9ac7277e148e2fd4d7615ac6e0bfb661
use CHILD_PROCESS_INIT to initialize automatic variables

Initialize struct child_process variables already when they're defined.
That's shorter and saves a function call.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
builtin/worktree.c