Skip to content

Commit

Permalink
makes the default more obvious
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed Jul 19, 2021
1 parent 309c309 commit aa90e48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ref_gather.c
Original file line number Diff line number Diff line change
Expand Up @@ -2511,6 +2511,7 @@ static REF_STATUS ref_gather_avm(REF_GRID ref_grid, const char *filename) {
for (faceid = min_faceid; faceid <= max_faceid; faceid++) {
REF_GEOM ref_geom = ref_grid_geom(ref_grid);
const char *patch_label, *patch_type;
const char *unknown_patch_type = "unknown";
char patch_label_index[33];
REF_STATUS ref_status;
ref_status = ref_egads_get_attribute(ref_geom, REF_GEOM_FACE, faceid,
Expand All @@ -2527,7 +2528,7 @@ static REF_STATUS ref_gather_avm(REF_GRID ref_grid, const char *filename) {
}
ref_status = ref_egads_get_attribute(ref_geom, REF_GEOM_FACE, faceid,
"av:patch_type", &patch_type);
if (REF_SUCCESS != ref_status) patch_type = "unknown";
if (REF_SUCCESS != ref_status) patch_type = unknown_patch_type;
length = (int)strlen(patch_type);
REIS(length,
fwrite(patch_type, sizeof(char), (unsigned long)length, file),
Expand Down

0 comments on commit aa90e48

Please sign in to comment.