summaryrefslogtreecommitdiff
path: root/amiga/filetype.c
diff options
context:
space:
mode:
Diffstat (limited to 'amiga/filetype.c')
-rw-r--r--amiga/filetype.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/amiga/filetype.c b/amiga/filetype.c
index 5cb661074..7b6805da7 100644
--- a/amiga/filetype.c
+++ b/amiga/filetype.c
@@ -34,7 +34,7 @@
* filetype -- determine the MIME type of a local file
*/
-struct MinList *ami_mime_list;
+struct MinList *ami_mime_list = NULL;
struct ami_mime_entry
{
@@ -186,7 +186,8 @@ nserror ami_mime_init(const char *mimefile)
struct nsObject *node;
struct ami_mime_entry *mimeentry;
- ami_mime_list = NewObjList();
+ if(ami_mime_list == NULL)
+ ami_mime_list = NewObjList();
rargs = AllocDosObjectTags(DOS_RDARGS,TAG_DONE);