# HG changeset patch # User Waqas Hussain # Date 1292112782 -18000 # Node ID 34981acbd5d55e370fc5c4f75287aaa530dce2d8 # Parent 3933e007f82979297d0f9b40996297963a07162f storagemanager: Fixed a nil global access. diff -r 3933e007f829 -r 34981acbd5d5 core/storagemanager.lua --- 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);