Skip to content

Commit

Permalink
v.kriging: Fix a segmentation fault (#967)
Browse files Browse the repository at this point in the history
* v.kriging: Fix a segmentation fault

* Apply the clang format
  • Loading branch information
HuidaeCho committed Nov 3, 2023
1 parent 93ea7e0 commit f1ed021
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/vector/v.kriging/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,9 @@ int main(int argc, char *argv[])

// Open report file if desired
if (xD.phase == 0) {
if (opt.report->answer) {
report->name = opt.report->answer;
report->name = opt.report->answer;

if (report->name) {
// initial phase: check if the file exists
if (access(report->name, F_OK) != -1) {
G_fatal_error(
Expand Down Expand Up @@ -504,8 +504,9 @@ int main(int argc, char *argv[])
*-------------------
* 3D interpolation + 3D points = 3D GIS
* 3D interpolation + 2D points = 2,5D -> 3D GIS (needs attribute column
*with z and 3D region) 2D interpolation + 3D points = 3D -> 2,5D GIS 2D
*interpolation + 2D points = 2,5D GIS */
* with z and 3D region)
* 2D interpolation + 3D points = 3D -> 2,5D GIS
* 2D interpolation + 2D points = 2,5D GIS */

// 3D interpolation
if (xD.i3 == TRUE) { // 3D interpolation:
Expand Down

0 comments on commit f1ed021

Please sign in to comment.