diff options
author | Byron Jones <glob@mozilla.com> | 2015-03-10 07:45:39 +0100 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-03-10 07:45:39 +0100 |
commit | d63c8a9b6c4cf5a750dd674318b1dd584bb0896c (patch) | |
tree | 10dc17491cc85abbaa762a677ab6c5967c54bbe9 /extensions/BzAPI | |
parent | 887524670413292b71448bd0c67ab2b786c78b49 (diff) | |
download | bugzilla-d63c8a9b6c4cf5a750dd674318b1dd584bb0896c.tar.gz bugzilla-d63c8a9b6c4cf5a750dd674318b1dd584bb0896c.tar.xz |
Bug 1139939: fix uninit value warning
Diffstat (limited to 'extensions/BzAPI')
-rw-r--r-- | extensions/BzAPI/Extension.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/extensions/BzAPI/Extension.pm b/extensions/BzAPI/Extension.pm index 54a1dca0f..f233b26e4 100644 --- a/extensions/BzAPI/Extension.pm +++ b/extensions/BzAPI/Extension.pm @@ -161,7 +161,10 @@ sub webservice_rest_response { # Add a Location header if a newly created resource # such as a bug or comment. - if ($rpc->bz_success_code == STATUS_CREATED && $$result->{ref}) { + if ($rpc->bz_success_code + && $rpc->bz_success_code == STATUS_CREATED + && $$result->{ref}) + { $response->header("Location", $$result->{ref}); } } |