mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed a possible crash if cPluginManager::GetPlugin() is called with a NULL pointer
This commit is contained in:
parent
bb335fecba
commit
6a15d77429
@ -1825,6 +1825,8 @@ Petri Hintukainen <Petri.Hintukainen@hut.fi>
|
||||
file is in the future
|
||||
for fixing handling video directory updates in case an other process has touched the
|
||||
.update file after the last NeedsUpdate() check
|
||||
for fixing a possible crash if cPluginManager::GetPlugin() is called with a NULL
|
||||
pointer
|
||||
|
||||
Marcel Schaeben <mts280@gmx.de>
|
||||
for his "Easy Input" patch
|
||||
|
2
HISTORY
2
HISTORY
@ -4956,3 +4956,5 @@ Video Disk Recorder Revision History
|
||||
- Fixed clearing an event's Title, ShortText and Description in case the data comes
|
||||
from an external source.
|
||||
- Updated the Hungarian language texts (thanks to Guido Josten).
|
||||
- Fixed a possible crash if cPluginManager::GetPlugin() is called with a NULL
|
||||
pointer (thanks to Petri Hintukainen).
|
||||
|
4
plugin.c
4
plugin.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: plugin.c 1.23 2006/08/13 08:51:44 kls Exp $
|
||||
* $Id: plugin.c 1.24 2006/10/14 09:49:16 kls Exp $
|
||||
*/
|
||||
|
||||
#include "plugin.h"
|
||||
@ -416,7 +416,7 @@ cPlugin *cPluginManager::GetPlugin(int Index)
|
||||
|
||||
cPlugin *cPluginManager::GetPlugin(const char *Name)
|
||||
{
|
||||
if (pluginManager) {
|
||||
if (pluginManager && Name) {
|
||||
for (cDll *dll = pluginManager->dlls.First(); dll; dll = pluginManager->dlls.Next(dll)) {
|
||||
cPlugin *p = dll->Plugin();
|
||||
if (p && strcmp(p->Name(), Name) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user