diff --git a/Modules/Segmentation/Conversion/include/otbLabelImageToOGRDataSourceFilter.txx b/Modules/Segmentation/Conversion/include/otbLabelImageToOGRDataSourceFilter.txx
index 7bfeed219da832ca95fbe648759fec1df2a89d16..0d41eba032274c1a69201edf7cdd8d000cdc1c9d 100644
--- a/Modules/Segmentation/Conversion/include/otbLabelImageToOGRDataSourceFilter.txx
+++ b/Modules/Segmentation/Conversion/include/otbLabelImageToOGRDataSourceFilter.txx
@@ -215,7 +215,7 @@ LabelImageToOGRDataSourceFilter<TInputImage>
     //Call GDALPolygonize()
     char ** options;
     options = ITK_NULLPTR;
-    char * option[1];
+    char * option[2]= { nullptr , nullptr } ;
     if (m_Use8Connected == true)
     {
       std::string opt("8CONNECTED:8");