throw away all NULLs and replace them by 0s

This commit is contained in:
Andrzej Rybczak
2009-08-30 17:43:13 +02:00
parent 0a22debf0e
commit 6843b98627
5 changed files with 23 additions and 35 deletions

View File

@@ -158,7 +158,7 @@ void NcmpcppErrorCallback(Connection *, int errorid, const char *msg, void *)
{
if (errorid == MPD_ACK_ERROR_PERMISSION)
{
wFooter->SetGetStringHelper(NULL);
wFooter->SetGetStringHelper(0);
Statusbar() << "Password: ";
std::string password = wFooter->GetString(-1, 0, 1);
Mpd.SetPassword(password);