Skip to content

Commit

Permalink
ps.map: Initialize variable before using it in conditional (#4286)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymdatta committed Sep 7, 2024
1 parent 98f38fc commit 9bbfd6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ps/ps.map/ps_header.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extern int rotate_plot;
int write_PS_header(void)
{
struct Categories cats;
int cats_ok;
int cats_ok = 0;

if (PS.do_raster)
cats_ok = Rast_read_cats(PS.cell_name, PS.cell_mapset, &cats) >= 0;
Expand Down

0 comments on commit 9bbfd6b

Please sign in to comment.