initializing a variable to zero.

This commit is contained in:
mcafee%netscape.com 1999-03-24 09:08:24 +00:00
Родитель 1abf0a76b3
Коммит dd87f3c4fb
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -852,7 +852,7 @@ NS_IMETHODIMP nsEditor::Paste()
nsresult rv = nsServiceManager::GetService(kCClipboardCID,
kIClipboardIID,
(nsISupports **)&clipboard);
nsITransferable * trans;
nsITransferable * trans = 0;
rv = nsComponentManager::CreateInstance(kCTransferableCID, nsnull, kITransferableIID, (void**) &trans);
if (nsnull != trans) {

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

@ -852,7 +852,7 @@ NS_IMETHODIMP nsEditor::Paste()
nsresult rv = nsServiceManager::GetService(kCClipboardCID,
kIClipboardIID,
(nsISupports **)&clipboard);
nsITransferable * trans;
nsITransferable * trans = 0;
rv = nsComponentManager::CreateInstance(kCTransferableCID, nsnull, kITransferableIID, (void**) &trans);
if (nsnull != trans) {