]> granicus.if.org Git - php/commitdiff
PDO Firebird: Fix uninitialized var warning
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 21 Dec 2020 19:04:26 +0000 (20:04 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 21 Dec 2020 20:47:00 +0000 (21:47 +0100)
ext/pdo_firebird/firebird_statement.c

index 105d5a358729fc17d2f2ae43bdc0393135f76a98..e80e26a2f897a0ca0536602d0788ad29a572adc8 100644 (file)
@@ -368,6 +368,8 @@ static int firebird_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr,  /* {{
                                        break;
                                case SQL_INT64:
                                        n = *(ISC_INT64*)var->sqldata;
+                                       break;
+                               EMPTY_SWITCH_DEFAULT_CASE()
                        }
 
                        *ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL);