Skip to content

Commit

Permalink
Fix warning compiling core_stmt.cpp (#1275) (#1277)
Browse files Browse the repository at this point in the history
converting to non-pointer type 'long int' from NULL

Co-authored-by: Michele Locati <[email protected]>
  • Loading branch information
yitam and mlocati authored Jul 5, 2021
1 parent cc92fc5 commit b3b2ace
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 b3b2ace

Please sign in to comment.