xbps_handle_alloc: use calloc to avoid using unitilizated value.
This commit is contained in:
parent
ca0905925f
commit
36c79fc167
@ -211,7 +211,7 @@ xbps_handle_get(void)
|
|||||||
struct xbps_handle *
|
struct xbps_handle *
|
||||||
xbps_handle_alloc(void)
|
xbps_handle_alloc(void)
|
||||||
{
|
{
|
||||||
return malloc(sizeof(struct xbps_handle));
|
return calloc(1, sizeof(struct xbps_handle));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user