зеркало из https://github.com/mozilla/gecko-dev.git
initializing a variable to zero.
This commit is contained in:
Родитель
1abf0a76b3
Коммит
dd87f3c4fb
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче