Index: export_xy/xy.c =================================================================== --- export_xy/xy.c (revision 37509) +++ export_xy/xy.c (revision 37510) @@ -989,6 +989,11 @@ static int xy_parse_arguments(rnd_hid_t *hid, int *argc, char ***argv) { rnd_export_register_opts2(hid, xy_options, sizeof(xy_options) / sizeof(xy_options[0]), xy_cookie, 0); + + /* when called from the export() command this field may be uninitialized yet */ + if (xy_options[HA_format].enumerations == NULL) + xy_get_export_options(hid, NULL, NULL, NULL); + return rnd_hid_parse_command_line(argc, argv); }