Skip to content

Commit

Permalink
r.in.xyz: Fix uninitialized variables (OSGeo#4150)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamDesai authored Aug 8, 2024
1 parent c132d68 commit ff83f69
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions raster/r.in.xyz/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ int main(int argc, char *argv[])
double zrange_min, zrange_max, vrange_min, vrange_max, d_tmp;
char *fs; /* field delim */
off_t filesize;
int linesize;
int linesize = 0;
unsigned long estimated_lines, line;
int from_stdin;
int can_seek;
Expand Down Expand Up @@ -1213,7 +1213,14 @@ int scan_bounds(FILE *fp, int xcol, int ycol, int zcol, int vcol, char *fs,
unsigned long line;
int first, max_col;
char buff[BUFFSIZE];
double min_x, max_x, min_y, max_y, min_z, max_z, min_v, max_v;
double min_x = 0.0;
double max_x = 0.0;
double min_y = 0.0;
double max_y = 0.0;
double min_z = 0.0;
double max_z = 0.0;
double min_v = 0.0;
double max_v = 0.0;
char **tokens;
int ntokens; /* number of tokens */
double x, y, z, v;
Expand Down

0 comments on commit ff83f69

Please sign in to comment.