Skip to content

Commit

Permalink
fix segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
kritibirda26 committed Jul 11, 2024
1 parent b0d90de commit 7d9ff1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raster/r.report/prt_json.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ JSON_Value *make_category(int ns, int nl, JSON_Value *sub_categories)
/* find or construct the label for floating point range to print */
if (Rast_is_c_null_value(&cats[nl]))
json_object_set_null(object, "description");
if (cat_ranges) {
else if (cat_ranges) {
json_object_set_string(object, "description",
Rast_get_ith_d_cat(&layers[nl].labels,
cats[nl], &dLow, &dHigh));
Expand Down

0 comments on commit 7d9ff1b

Please sign in to comment.