From f2d23374e5b3c46f6be55423591b098458eba68d Mon Sep 17 00:00:00 2001 From: Alexandra Titoc Date: Fri, 13 Sep 2024 17:55:32 +0300 Subject: [PATCH] cachedb_dynamodb: Initialize 'con' pointer and remove unnecessary if condition CID #417568, #417618 --- modules/cachedb_dynamodb/cachedb_dynamodb_dbase.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cachedb_dynamodb/cachedb_dynamodb_dbase.c b/modules/cachedb_dynamodb/cachedb_dynamodb_dbase.c index 13d991c6bd8..5479a79d598 100644 --- a/modules/cachedb_dynamodb/cachedb_dynamodb_dbase.c +++ b/modules/cachedb_dynamodb/cachedb_dynamodb_dbase.c @@ -23,7 +23,7 @@ void dynamodb_destroy(cachedb_con *connection) { - dynamodb_con *con; + dynamodb_con *con = NULL; if (connection) con = (dynamodb_con *)(connection->data); @@ -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; }