Skip to content

Commit

Permalink
Fix warning compiling core_stmt.cpp (#1275)
Browse files Browse the repository at this point in the history
converting to non-pointer type 'long int' from NULL
  • Loading branch information
mlocati authored Jul 5, 2021
1 parent f00dc9f commit bde9812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/shared/core_stmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3101,7 +3101,7 @@ void sqlsrv_param_tvp::process_param(_Inout_ sqlsrv_stmt* stmt, _Inout_ zval* pa
column_size = num_rows;

buffer = NULL;
buffer_length = NULL;
buffer_length = 0;
strlen_or_indptr = (num_columns == 0)? SQL_DEFAULT_PARAM : SQL_DATA_AT_EXEC;
} else {
// This is one of the constituent columns of the table-valued parameter
Expand Down

0 comments on commit bde9812

Please sign in to comment.