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...


git-svn-id: svn://10.0.0.236/trunk@20083 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mscott%netscape.com
1999-02-09 03:21:34 +00:00
parent 7cc4e877a6
commit 4ef71a6086

View File

@@ -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;
}