summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
Diffstat (limited to 'riscos')
-rw-r--r--riscos/plugin.c6
-rw-r--r--riscos/plugin.h3
2 files changed, 4 insertions, 5 deletions
diff --git a/riscos/plugin.c b/riscos/plugin.c
index de4b5921a..28d3fc9dd 100644
--- a/riscos/plugin.c
+++ b/riscos/plugin.c
@@ -1,5 +1,5 @@
/**
- * $Id: plugin.c,v 1.5 2003/06/06 02:30:00 jmb Exp $
+ * $Id: plugin.c,v 1.6 2003/06/06 03:12:28 jmb Exp $
*/
#include <assert.h>
@@ -69,9 +69,9 @@ void plugin_decode(struct content* content, char* url, struct box* box,
/* no data so try using classid instead */
- po->data = strdup(po->classid);
+ if (po->classid != NULL) {
- if (po->data != NULL) {
+ po->data = strdup(po->classid);
if (strnicmp(po->data,"clsid:",6) == 0) {
diff --git a/riscos/plugin.h b/riscos/plugin.h
index 9f054100a..824141337 100644
--- a/riscos/plugin.h
+++ b/riscos/plugin.h
@@ -1,5 +1,5 @@
/**
- * $Id: plugin.h,v 1.2 2003/06/06 02:08:56 jmb Exp $
+ * $Id: plugin.h,v 1.3 2003/06/06 03:12:28 jmb Exp $
*/
#ifndef _NETSURF_RISCOS_PLUGIN_H_
@@ -8,7 +8,6 @@
struct plugin_object {
char* data;
- char* src;
char* type;
char* codetype;
char* codebase;