]> granicus.if.org Git - php/commitdiff
Fix Coverity issue reporting wrong sizeof()
authorYasuo Ohgaki <yohgaki@php.net>
Tue, 22 Oct 2013 03:27:18 +0000 (12:27 +0900)
committerYasuo Ohgaki <yohgaki@php.net>
Tue, 22 Oct 2013 03:27:18 +0000 (12:27 +0900)
ext/pgsql/pgsql.c

index f4c4cb37e785cad6ee34d5b568ce286d3465d149..c8f7d3d4326e605666441bab65e094b9bc3a2377 100644 (file)
@@ -2639,7 +2639,7 @@ static void php_pgsql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, long result_type,
                                        Bucket *p;
        
                                        fci.param_count = 0;
-                                       fci.params = safe_emalloc(sizeof(zval*), ht->nNumOfElements, 0);
+                                       fci.params = safe_emalloc(sizeof(zval***), ht->nNumOfElements, 0);
                                        p = ht->pListHead;
                                        while (p != NULL) {
                                                fci.params[fci.param_count++] = (zval**)p->pData;