From e97617ad60d246522b612353cc73885464f596a4 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Thu, 25 Feb 2016 08:04:20 +0000 Subject: [PATCH] Do not init table cache if Cache provided by user --- ChangeLog | 1 + Info.pm | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index ee5eaaff..0d207f36 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ version 3.32 () [BUG FIXES] * Support undefined (noSuchIntance) values in Offline mode + * Do not init table cache if Cache provided by user version 3.31 (2016-01-22) diff --git a/Info.pm b/Info.pm index ddbd5ccb..1a087f49 100644 --- a/Info.pm +++ b/Info.pm @@ -1240,11 +1240,8 @@ sub new { return; } - # Table function store - my $store = {}; - # Save Args for later - $new_obj->{store} = $store; + $new_obj->{store} ||= {}; $new_obj->{sess} = $sess; $new_obj->{args} = \%args; $new_obj->{snmp_ver} = $args{Version} || 2;