Skip to content

Commit

Permalink
Fix bug causing NULL subcategories when revisiting old name/value pairs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mplegendre committed Oct 9, 2019
1 parent 55b3c77 commit eae73a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adiak.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ static void record_nameval(const char *name, adiak_category_t category, const ch
}

addrecord->category = category;
addrecord->subcategory = addrecord->subcategory ? strdup(subcategory) : NULL;
addrecord->subcategory = subcategory ? strdup(subcategory) : NULL;
addrecord->value = value;
addrecord->dtype = dtype;

Expand Down

0 comments on commit eae73a8

Please sign in to comment.