]> granicus.if.org Git - php/commitdiff
Don't dup here either
authorWez Furlong <wez@php.net>
Thu, 20 May 2004 10:30:29 +0000 (10:30 +0000)
committerWez Furlong <wez@php.net>
Thu, 20 May 2004 10:30:29 +0000 (10:30 +0000)
ext/pdo_mysql/mysql_statement.c

index 3fe67fe3480e67bb7c6c7350e7247b22c1862348..997c49bc312f2a890313e58cc7135ba9fd56726d 100755 (executable)
@@ -138,9 +138,7 @@ static int pdo_mysql_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsig
                pdo_mysql_error(S->H);
                return 0;
        }
-       if (S->current_data[colno]) {
-               *ptr = estrndup(S->current_data[colno], S->current_lengths[colno] +1);
-       }
+       *ptr = S->current_data[colno];
        *len = S->current_lengths[colno];
        return 1;
 }