commit: 00e2a72d50acf329a128b81f116e037c82f27c72
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 19 18:30:49 2020 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Jan 19 18:30:49 2020 +0000
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=00e2a72d
libq/set: fix Coverity 206548 Sizeof not portable
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
libq/set.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libq/set.c b/libq/set.c
index ceb6f47..88b5876 100644
--- a/libq/set.c
+++ b/libq/set.c
@@ -252,7 +252,7 @@ list_set(set *q, char ***l)
set_elem *w;
char **ret;
- ret = *l = xmalloc(sizeof(char **) * (q->len + 1));
+ ret = *l = xmalloc(sizeof(char *) * (q->len + 1));
for (i = 0; i < _SET_HASH_SIZE; i++) {
for (w = q->buckets[i]; w != NULL; w = w->next) {
*ret = w->name;