Commit ee3820b3 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

common: Fix potentially uninitialized value warning

parent 3fabdb0f
......@@ -160,7 +160,8 @@ namespace VLC
template <>
inline const char * &&converterForNullToString(const char * &&str)
{
return std::forward<const char *>(str == nullptr ? "" : str);
static const char* empty = "";
return std::forward<const char *>(str == nullptr ? empty : str);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment