*/
#define _GNU_SOURCE
+#define _LGPL_SOURCE
#include <assert.h>
#include <inttypes.h>
#include <stdio.h>
if (!ha) {
return NULL;
}
- ha->flags = zmalloc(sizeof(*ha->flags));
+ ha->flags = zmalloc(sizeof(*ha->flags) * nr_types);
if (!ha->flags) {
goto error_flags;
}