summaryrefslogtreecommitdiffstats
path: root/extensions/BzAPI
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-03-10 07:45:39 +0100
committerByron Jones <glob@mozilla.com>2015-03-10 07:45:39 +0100
commitd63c8a9b6c4cf5a750dd674318b1dd584bb0896c (patch)
tree10dc17491cc85abbaa762a677ab6c5967c54bbe9 /extensions/BzAPI
parent887524670413292b71448bd0c67ab2b786c78b49 (diff)
downloadbugzilla-d63c8a9b6c4cf5a750dd674318b1dd584bb0896c.tar.gz
bugzilla-d63c8a9b6c4cf5a750dd674318b1dd584bb0896c.tar.xz
Bug 1139939: fix uninit value warning
Diffstat (limited to 'extensions/BzAPI')
-rw-r--r--extensions/BzAPI/Extension.pm5
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});
}
}