submodule--helper: fix potential NULL-dereference
commit3c0663e16630ddfd9f4c2e46e52c9984a03b888d
authorStefan Beller <sbeller@google.com>
Thu, 31 Mar 2016 21:04:37 +0000 (31 14:04 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 31 Mar 2016 22:19:01 +0000 (31 15:19 -0700)
tree6023f7fdc3ca263efa1c785d4297cfc758a486c4
parent3fea121df31c108ee9c52fd888a90d68a3bbb2b2
submodule--helper: fix potential NULL-dereference

Don't dereference NULL 'path' if it was never assigned.  Also
protect against an empty --path argument.

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