xbps_handle_alloc: use calloc to avoid using unitilizated value.

This commit is contained in:
Juan RP 2011-12-22 21:47:32 +01:00
parent ca0905925f
commit 36c79fc167

View File

@ -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