xbps-bin: zero out allocated mem to avoid garbage in the 'list' target.
This commit is contained in:
		| @@ -76,7 +76,7 @@ list_pkgs_in_dict(prop_object_t obj, void *arg, bool *loop_done) | |||||||
| 	if (!pkgver && !short_desc) | 	if (!pkgver && !short_desc) | ||||||
| 		return EINVAL; | 		return EINVAL; | ||||||
|  |  | ||||||
| 	tmp = malloc(lpc->pkgver_len + 1); | 	tmp = calloc(1, lpc->pkgver_len + 1); | ||||||
| 	if (tmp == NULL) | 	if (tmp == NULL) | ||||||
| 		return errno; | 		return errno; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user