Skip to content

Commit

Permalink
Fix coverity static code analysis warning
Browse files Browse the repository at this point in the history
  • Loading branch information
vrogier committed Feb 8, 2017
1 parent ddaeeac commit 3c57624
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/statement.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,10 @@ boolean OCI_BindData

/* set allocation mode prior any required data allocation */

bnd->alloc_mode = (ub1) stmt->bind_alloc_mode;
if (OCI_STATUS)
{
bnd->alloc_mode = (ub1)stmt->bind_alloc_mode;
}

/* for handle based data types, we need to allocate an array of handles for
bind calls because OCILIB uses external arrays of OCILIB Objects */
Expand Down

0 comments on commit 3c57624

Please sign in to comment.