Skip to content
Snippets Groups Projects
Commit fb010c6a authored by Julien Malik's avatar Julien Malik
Browse files

BUG: fix case with no option

parent d2002176
No related branches found
No related tags found
No related merge requests found
...@@ -82,7 +82,9 @@ struct StringListConverter ...@@ -82,7 +82,9 @@ struct StringListConverter
*/ */
char ** to_ogr() const char ** to_ogr() const
{ {
return const_cast <char**>(&m_raw[0]); return m_raw.size() == 1
? NULL
: const_cast <char**>(&m_raw[0]);
} }
private: private:
std::vector<char const*> m_raw; std::vector<char const*> m_raw;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment