libDtSearch: Coverity 86459
authorPeter Howkins <flibble@users.sf.net>
Mon, 2 Jul 2018 22:28:31 +0000 (23:28 +0100)
committerPeter Howkins <flibble@users.sf.net>
Mon, 2 Jul 2018 22:28:31 +0000 (23:28 +0100)
cde/lib/DtSearch/isduprec.c

index b87de0ab829cd20af09a4c33ed691bb64481190d..31d0fad8aace92b877f5cc59a484ddf9f39bbb59 100644 (file)
@@ -169,7 +169,7 @@ int             is_duprec (char *recid)
            duprec_hashsize);
 #endif
 
-       hashtab = malloc ((duprec_hashsize + 2L) * sizeof (HASHNODE **));
+       hashtab = malloc ((duprec_hashsize + 2L) * sizeof (HASHNODE *));
        if (hashtab == NULL)
            return OUT_OF_MEM;