ZERO_LENGTH_ARRAY causes problems for external progs, so just go to 1

This commit is contained in:
Bill Currie 2001-04-01 02:09:48 +00:00
parent ccbae9bd5c
commit 581d6bc721

View file

@ -43,7 +43,7 @@ typedef struct hashtab_s {
void *user_data;
char *(*get_key)(void*,void*);
void (*free_ele)(void*,void*);
hashlink_t *tab[ZERO_LENGTH_ARRAY];
hashlink_t *tab[1]; // variable size
} hashtab_t;
hashtab_t *Hash_NewTable (int tsize, char *(*gk)(void*,void*),