Skip to content

Commit

Permalink
Pass zero instead of NULL for int parameters in C tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mauzey1 committed Mar 21, 2023
1 parent 2156cb3 commit 6893280
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Test/test_cmor_append_associated.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ void loopRoutine(char *times, char *returnvalue)
read_time(i, &Time[i-k*ntimes], &bnds_time[2 * (i-k*ntimes)]);

if(times)
ierr = cmor_axis(&axes_ids[0], "time", "months since 1980", NULL, NULL, 'd',
NULL, NULL, NULL);
ierr = cmor_axis(&axes_ids[0], "time", "months since 1980", 0, NULL, 'd',
NULL, 0, NULL);
else
ierr = cmor_axis(&axes_ids[0], "time", "months since 1980", ntimes, &Time[0], 'd',
&bnds_time[0], 2, NULL);
Expand Down
2 changes: 1 addition & 1 deletion Test/test_cmor_append_associated_point.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void loopRoutine(char *times, char *returnvalue)
read_time(i, &Time[i-k*ntimes], &bnds_time[2 * (i-k*ntimes)]);

if(times)
ierr = cmor_axis(&axes_ids[0], "time1", "months since 1980", NULL, NULL, 'd',
ierr = cmor_axis(&axes_ids[0], "time1", "months since 1980", 0, NULL, 'd',
NULL, 0, NULL);
else
ierr = cmor_axis(&axes_ids[0], "time1", "months since 1980", ntimes, &Time[0], 'd',
Expand Down
2 changes: 1 addition & 1 deletion Test/test_cmor_depth_coord_half.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ int main()
ierr |= cmor_variable(&myvars[0], "zhalfo", "m", 4, axes_ids, 'd', NULL,
NULL, "", "zhalfo", "no history", "no future");

ierr |= cmor_write(myvars[0], zhalfo_data, 'd', NULL, NULL, NULL, NULL, NULL);
ierr |= cmor_write(myvars[0], zhalfo_data, 'd', NULL, 0, NULL, NULL, NULL);

ierr |= cmor_close_variable(myvars[0], returnvalue, NULL);

Expand Down
2 changes: 1 addition & 1 deletion Test/test_cmor_singleton_and_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ int main()
double lambda550[1] = {550.};

ierr |= cmor_axis(&axes_ids[4], "lambda550nm", "nm", 1, lambda550, 'd',
NULL, NULL, "");
NULL, 0, "");

double p0[1] = {101325.0};
double a_val[4] = {0, 0, 36.0317993164062, 171.845031738281};
Expand Down

0 comments on commit 6893280

Please sign in to comment.