diff options
author | Arnstein Ressem <aressem@gmail.com> | 2018-02-20 15:02:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-20 15:02:06 +0100 |
commit | cbb64cd65388971b3c8d27bd7fbfe8ea34451cb9 (patch) | |
tree | 0f91a1226221e1232fbbc1c68c901880b3d2e425 /config-model/src/main | |
parent | 2be3d3348b515a54240ee7b8860e86a1281f4ecb (diff) | |
parent | be56876d20bf6328f2d4b645702bfa11d0819e49 (diff) |
Merge pull request #5085 from vespa-engine/toregge/avoid-uninitialized-variable-warnings
Avoid uninitialized variable warning.
Diffstat (limited to 'config-model/src/main')
-rwxr-xr-x | config-model/src/main/perl/vespa-deploy | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config-model/src/main/perl/vespa-deploy b/config-model/src/main/perl/vespa-deploy index aea97bebb96..cb198c170a5 100755 --- a/config-model/src/main/perl/vespa-deploy +++ b/config-model/src/main/perl/vespa-deploy @@ -142,6 +142,7 @@ create_cloudconfig_dir(); $session_id_file = "$cloudconfig_dir/$tenant/deploy-session-id"; my $command = shift; +$command ||= "help"; if ($command eq "upload") { @@ -208,6 +209,7 @@ sub usage { if ($command && $command eq "help") { $command = $arg; } + $command ||= "help"; if ($command eq "upload") { usage_upload(); |