]> granicus.if.org Git - php/commitdiff
fixed possibly uninitialized value usage
authorAnatol Belski <ab@php.net>
Tue, 17 Dec 2013 07:44:22 +0000 (08:44 +0100)
committerAnatol Belski <ab@php.net>
Tue, 17 Dec 2013 07:44:22 +0000 (08:44 +0100)
ext/pdo_odbc/odbc_stmt.c

index 0e3fd3cbb9f31a842f21f229646a34a6f95812c6..89b67210c5fb11002171f319f57238959913d121 100644 (file)
@@ -472,7 +472,7 @@ static int odbc_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *p
                                        if (P->outbuf) {
                                                unsigned long ulen;
                                                char *srcbuf;
-                                               unsigned long srclen;
+                                               unsigned long srclen = 0;
 
                                                switch (P->len) {
                                                        case SQL_NULL_DATA: