Skip to content

Commit

Permalink
address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
kritibirda26 committed Jul 18, 2024
1 parent 80b0501 commit de96787
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions raster/r.category/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ int main(int argc, char *argv[])
if (strcmp(parm.format->answer, "json") == 0) {
format = JSON;
root_value = json_value_init_array();
if (root_value == NULL) {
G_fatal_error(_("Failed to initialize JSON array. Out of memory?"));
}
root_array = json_array(root_value);
}
else {
Expand Down

0 comments on commit de96787

Please sign in to comment.