зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
cd3d5eef8b
Коммит
42bcff3720
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче