summaryrefslogtreecommitdiff
path: root/plugin.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-10-14 09:57:09 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-10-14 09:57:09 +0200
commit6a15d77429968ae372ae23be9deca7c57a44bfe5 (patch)
tree8d58b86d85300957b8e6635eb1c7bf42f1e08e25 /plugin.c
parentbb335fecbaf41242313b76c8a5042f67e51de45c (diff)
downloadvdr-6a15d77429968ae372ae23be9deca7c57a44bfe5.tar.gz
vdr-6a15d77429968ae372ae23be9deca7c57a44bfe5.tar.bz2
Fixed a possible crash if cPluginManager::GetPlugin() is called with a NULL pointer
Diffstat (limited to 'plugin.c')
-rw-r--r--plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin.c b/plugin.c
index 40b44948..569e941a 100644
--- a/plugin.c
+++ b/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)