diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-10-15 19:41:13 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-10-15 19:41:13 +0100 |
commit | c41ff369ff36e1ab8e25cbec6543fffa21fd3ff3 (patch) | |
tree | a62bf4a25d47c7589a878f6d7381c365b0e9aabc /amiga/font_scan.c | |
parent | fe3582667c5cf70785f873bb862022ced50820fc (diff) | |
parent | b40fd3a88ac8ce748855988efb418aad7a9cf91d (diff) | |
download | netsurf-c41ff369ff36e1ab8e25cbec6543fffa21fd3ff3.tar.gz netsurf-c41ff369ff36e1ab8e25cbec6543fffa21fd3ff3.tar.bz2 |
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
Diffstat (limited to 'amiga/font_scan.c')
-rw-r--r-- | amiga/font_scan.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/amiga/font_scan.c b/amiga/font_scan.c index 33a9c54aa..549ea5064 100644 --- a/amiga/font_scan.c +++ b/amiga/font_scan.c @@ -300,14 +300,16 @@ ULONG ami_font_scan_list(struct MinList *list) for(i = 0; i < afh->afh_NumEntries; i++) { if(af[i].af_Attr.ta_Style == FS_NORMAL) { - node = (struct nsObject *)FindIName((struct List *)list, - af[i].af_Attr.ta_Name); - if(node == NULL) { - node = AddObject(list, AMINS_UNKNOWN); - if(node) { - node->dtz_Node.ln_Name = strdup(af[i].af_Attr.ta_Name); - found++; - LOG(("Added %s\n", af[i].af_Attr.ta_Name)); + if(af[i].af_Attr.ta_Name != NULL) { + node = (struct nsObject *)FindIName((struct List *)list, + af[i].af_Attr.ta_Name); + if(node == NULL) { + node = AddObject(list, AMINS_UNKNOWN); + if(node) { + node->dtz_Node.ln_Name = strdup(af[i].af_Attr.ta_Name); + found++; + LOG(("Added %s\n", af[i].af_Attr.ta_Name)); + } } } } |