Changeset

3849:34981acbd5d5

storagemanager: Fixed a nil global access.
author Waqas Hussain <waqas20@gmail.com>
date Sun, 12 Dec 2010 05:13:02 +0500
parents 3848:3933e007f829
children 3850:39492ede0cf5
files core/storagemanager.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/storagemanager.lua	Sat Dec 11 22:34:29 2010 +0000
+++ b/core/storagemanager.lua	Sun Dec 12 05:13:02 2010 +0500
@@ -25,6 +25,7 @@
 local stores_available = multitable.new();
 
 function initialize_host(host)
+	local host_session = hosts[host];
 	host_session.events.add_handler("item-added/data-driver", function (event)
 		local item = event.item;
 		stores_available:set(host, item.name, item);