diff --git a/Pcie40Applications/regconfig.cpp b/Pcie40Applications/regconfig.cpp
index 3aa0930cc5e6575ec9d194cb2466d897b484e4b7..b1541ab8ac38e81de68c80962f01d9e36e32efef 100644
--- a/Pcie40Applications/regconfig.cpp
+++ b/Pcie40Applications/regconfig.cpp
@@ -347,7 +347,7 @@ int main(int argc, char** argv){
   // open pcie40 device driver for current process
   ecs_open( dev_slot , SLC_BAR );
   int result = -1;
-
+  pcie40reg_t pcie40;
 
   if(PCIE40_REG && READ_ONLY){
     result = ecs_read( dev_slot , SLC_BAR , addr);