зеркало из https://github.com/mozilla/pjs.git
Adding zero check on a char pointer before sending it to printf.
This commit is contained in:
Родитель
10e19444a4
Коммит
6cf82163bf
|
@ -1508,7 +1508,8 @@ NS_IMETHODIMP nsPluginHostImpl::InstantiateEmbededPlugin(const char *aMimeType,
|
||||||
nsIPluginInstance *instance = nsnull;
|
nsIPluginInstance *instance = nsnull;
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef NS_DEBUG
|
||||||
printf("InstantiateEmbededPlugin for %s\n",aMimeType);
|
if(!aMimeType)
|
||||||
|
printf("InstantiateEmbededPlugin for %s\n",aMimeType);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(FindStoppedPluginForURL(aURL, aOwner) == NS_OK)
|
if(FindStoppedPluginForURL(aURL, aOwner) == NS_OK)
|
||||||
|
|
|
@ -1508,7 +1508,8 @@ NS_IMETHODIMP nsPluginHostImpl::InstantiateEmbededPlugin(const char *aMimeType,
|
||||||
nsIPluginInstance *instance = nsnull;
|
nsIPluginInstance *instance = nsnull;
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef NS_DEBUG
|
||||||
printf("InstantiateEmbededPlugin for %s\n",aMimeType);
|
if(!aMimeType)
|
||||||
|
printf("InstantiateEmbededPlugin for %s\n",aMimeType);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(FindStoppedPluginForURL(aURL, aOwner) == NS_OK)
|
if(FindStoppedPluginForURL(aURL, aOwner) == NS_OK)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче