Skip to content

Commit

Permalink
cachedb_dynamodb: Initialize 'con' pointer and remove unnecessary if …
Browse files Browse the repository at this point in the history
…condition

CID #417568, #417618
  • Loading branch information
oanatitoc committed Sep 13, 2024
1 parent 7cf9f04 commit f2d2337
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/cachedb_dynamodb/cachedb_dynamodb_dbase.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@


void dynamodb_destroy(cachedb_con *connection) {
dynamodb_con *con;
dynamodb_con *con = NULL;
if (connection)
con = (dynamodb_con *)(connection->data);

Expand Down Expand Up @@ -392,7 +392,7 @@ static int is_valid_int64(const char *str, int64_t *value) {
return 0;
}

if (val < INT64_MIN || val > INT64_MAX) {
if (val > INT64_MAX) {
return 0;
}

Expand Down

0 comments on commit f2d2337

Please sign in to comment.