Skip to content

Commit

Permalink
db_text: fix no-op code
Browse files Browse the repository at this point in the history
fixes Coverity CID #200004
  • Loading branch information
razvancrainea committed Jul 10, 2020
1 parent 4a3dbd9 commit 6c4da32
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/db_text/dbt_file.c
Expand Up @@ -367,8 +367,13 @@ dbt_table_p dbt_load_file(const str *tbn, const str *dbn)
if(ccol == dtp->auto_col)
max_auto = (max_auto<dtval.val.bigint_val)?
dtval.val.bigint_val:max_auto;
/* no need to do this as the values are already
* overlapping in the dtval.val union, therefore the
* operation is a no-op - Coverity CID #200004
*
if (dtval.type!=DB_BIGINT)
dtval.val.int_val = (int)dtval.val.bigint_val;
*/
break;

case DB_DOUBLE:
Expand Down

0 comments on commit 6c4da32

Please sign in to comment.