MusicPlayerDaemon / mpdscribble

a MPD client which submits information about tracks being played to a scrobbler (e.g. last.fm)
GNU General Public License v2.0
114 stars 15 forks source link

ReadConfig.cxx: fix exception if XDG_CONFIG_HOME isn't defined #35

Closed cstew2 closed 2 years ago

cstew2 commented 2 years ago

If getenv("XDG_CONFIG_HOME") returns a null pointer then it cannot be concatenated with a std::string. It should fall back to $HOME/.config as per the XDG specification anyway.