diff --git a/Testing/Code/IO/otbImageIOFactoryNew.cxx b/Testing/Code/IO/otbImageIOFactoryNew.cxx
index 1bce5ec3ee50780a6943f2569f20ba96505d9110..e028f56532088db4874ec46615663446d6644672 100644
--- a/Testing/Code/IO/otbImageIOFactoryNew.cxx
+++ b/Testing/Code/IO/otbImageIOFactoryNew.cxx
@@ -27,6 +27,6 @@
 int otbImageIOFactoryNew(int argc, char* argv [])
 {
   otb::ImageIOFactory * lImageIOFactory;
-
+  lImageIOFactory = NULL;
   return EXIT_SUCCESS;
 }