Oops...one of my changes got lost...if you are reading in user data, don't write it into m_userData unless the user

actually entered a value...if you do write in it, we step on the default value which is alredy in m_userData...
This commit is contained in:
mscott%netscape.com 1999-02-09 03:21:34 +00:00
Родитель b440575180
Коммит c360487645
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -342,7 +342,8 @@ nsresult nsNntpTestDriver::PromptForUserDataAndBuildUrl(const char * userPrompt)
// only replace m_userData if the user actually entered a valid line...
// this allows the command function to set a default value on m_userData before
// calling this routine....
PL_strcpy(m_userData, tempBuffer);
if (tempBuffer && *tempBuffer)
PL_strcpy(m_userData, tempBuffer);
return NS_OK;
}