xbps-bin: zero out allocated mem to avoid garbage in the 'list' target.

This commit is contained in:
Juan RP 2010-12-04 10:30:01 +01:00
parent 237991fd79
commit 4f6e20c431

View File

@ -76,7 +76,7 @@ list_pkgs_in_dict(prop_object_t obj, void *arg, bool *loop_done)
if (!pkgver && !short_desc)
return EINVAL;
tmp = malloc(lpc->pkgver_len + 1);
tmp = calloc(1, lpc->pkgver_len + 1);
if (tmp == NULL)
return errno;