]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_pgsql] Coverity: 1227660 Logically dead code
authorAndrey Volk <andywolk@gmail.com>
Sun, 1 Oct 2023 10:19:01 +0000 (13:19 +0300)
committerAndrey Volk <andywolk@gmail.com>
Sun, 1 Oct 2023 10:19:01 +0000 (13:19 +0300)
src/mod/databases/mod_pgsql/mod_pgsql.c

index 0308f1f1fd7f70856d9eb996acb386c5800f3778..61250b3f20f13947e9147fe432830b9d66b6337e 100644 (file)
@@ -113,7 +113,7 @@ static int db_is_up(switch_pgsql_handle_t *handle)
        char *err_str = NULL;
        int max_tries = DEFAULT_PGSQL_RETRIES;
        int code = 0;
-       int recon = 0;
+       switch_status_t recon = SWITCH_STATUS_FALSE;
        switch_byte_t sanity = 255;
 
        if (handle) {