worktree: initialize return value for submodule_uses_worktrees
commit7c4be458b1c7ba81b0cc63d76a144261eb2395be
authorStefan Beller <sbeller@google.com>
Tue, 27 Dec 2016 17:50:13 +0000 (27 09:50 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 Dec 2016 21:59:49 +0000 (27 13:59 -0800)
tree12df99aec998f2f7eb2ba2a38e1c9099e14d4bf9
parentf6f858614003a3da794385cefdbddf00b85f7501
worktree: initialize return value for submodule_uses_worktrees

When the worktrees directory is empty, the `ret` will be returned
uninitialized. Fix it by initializing the value.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
worktree.c