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:
parent
456f07c218
commit
2047dac6a0
@ -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' },
|
||||
|
Loading…
Reference in New Issue
Block a user