Index: src/plug_footprint.c =================================================================== --- src/plug_footprint.c (revision 1582) +++ src/plug_footprint.c (revision 1583) @@ -182,7 +182,8 @@ else l->name = strdup(name); l->parent = parent; - + l->type = LIB_DIR; + vtlib_init(&l->data.dir.children); return l; }