biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / misc / arcanist / shellcomplete-strlen-null.patch
blob6911ce074e0cd87292a6bb758708fc006cea44ac
1 diff --git a/src/toolset/workflow/ArcanistShellCompleteWorkflow.php b/src/toolset/workflow/ArcanistShellCompleteWorkflow.php
2 index 9c2fcf9a..307231c8 100644
3 --- a/src/toolset/workflow/ArcanistShellCompleteWorkflow.php
4 +++ b/src/toolset/workflow/ArcanistShellCompleteWorkflow.php
5 @@ -92,7 +92,7 @@ EOTEXT
6 $argv = $this->getArgument('argv');
8 $is_generate = $this->getArgument('generate');
9 - $is_shell = (bool)strlen($this->getArgument('shell'));
10 + $is_shell = phutil_nonempty_string($this->getArgument('shell'));
11 $is_current = $this->getArgument('current');
13 if ($argv) {