xbps-fetch: use standards compliant struct initializer.

Initializing structs with '{}' is supported on most compilers, but not
defined in the standard. The correct initializer for this is '{0}'.

Spotted with cproc.
This commit is contained in:
Érico Rolim 2020-12-05 19:00:45 -03:00 committed by Duncan Overbruck
parent 456f07c218
commit 2047dac6a0
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35

View File

@ -88,8 +88,8 @@ main(int argc, char **argv)
int flags = 0, c = 0, rv = 0;
bool verbose = false;
bool shasum = false;
struct xbps_handle xh = {};
struct xferstat xfer = {};
struct xbps_handle xh = { 0 };
struct xferstat xfer = { 0 };
const char *filename = NULL, *progname = argv[0];
const struct option longopts[] = {
{ "out", required_argument, NULL, 'o' },