summaryrefslogtreecommitdiff
path: root/plugin/plugin.c
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2009-06-23 18:48:34 +0200
committerSamuel Lidén Borell <samuel@slbdata.se>2010-01-02 22:30:10 +0100
commit560fd659f00c6b584fdbd4805038da640bcbfd5b (patch)
treebc94b517cdbd323afe3d81718cbb75b584505698 /plugin/plugin.c
parent4b9b92ec319939b26becda8a10e151481f40b295 (diff)
downloadfribid-560fd659f00c6b584fdbd4805038da640bcbfd5b.tar.gz
fribid-560fd659f00c6b584fdbd4805038da640bcbfd5b.tar.bz2
fribid-560fd659f00c6b584fdbd4805038da640bcbfd5b.zip
Fixed a NULL dereference in GetParam
Diffstat (limited to 'plugin/plugin.c')
-rw-r--r--plugin/plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/plugin.c b/plugin/plugin.c
index 899fadd..ebf75c8 100644
--- a/plugin/plugin.c
+++ b/plugin/plugin.c
@@ -88,7 +88,7 @@ char *sign_getParam(Plugin *plugin, const char *name) {
char **valuePtr = getParamPointer(plugin, name);
char *value = NULL;
- if (*valuePtr) value = strdup(*valuePtr);
+ if (valuePtr && *valuePtr) value = strdup(*valuePtr);
return (value != NULL ? value : strdup(""));
}