diff --git a/scripts/html-title.nse b/scripts/html-title.nse
index 861177b8a..1710de866 100644
--- a/scripts/html-title.nse
+++ b/scripts/html-title.nse
@@ -43,7 +43,7 @@ end
action = function(host, port)
- local data, result, redir, title
+ local data, result, redir, title, loc
data = http.get( host, port, '/' )