diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | names.c | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,5 @@ +- parse only once usb.ids (avoids displaying Duplicate errors) + Version 0.8.5 - 14 September 2009, Pascal Terjan - do not display any warning when driver field is empty in @@ -138,6 +138,8 @@ static struct genericstrtable *hutus[HASHSZ] = { NULL, }; static struct genericstrtable *langids[HASHSZ] = { NULL, }; static struct genericstrtable *countrycodes[HASHSZ] = { NULL, }; +static int init_done = 0; + /* ---------------------------------------------------------------------- */ static const char *names_genericstrtable(struct genericstrtable *t[HASHSZ], unsigned int index) @@ -799,7 +801,9 @@ static void parse(usb_file f) int names_init(char *n) { usb_file f; - + if(init_done) + return 0; + init_done = 1; if (!(f = usb_fopen(n, "r"))) { return errno; } |