This is similar to the previous commit, except this is for a
different type (vahControl) and also fixes the case where _ctl is
passed not initialized to vah_error() (via ctl pointer so that's
probably why compilers don't complain).
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Claudio Fontana <cfontana@suse.de>
int
main(int argc, char **argv)
{
- vahControl _ctl, *ctl = &_ctl;
+ vahControl _ctl = { 0 };
+ vahControl *ctl = &_ctl;
int rc = -1;
char *profile = NULL;
char *include_file = NULL;
else
progname++;
- memset(ctl, 0, sizeof(vahControl));
-
if (vahParseArgv(ctl, argc, argv) != 0)
vah_error(ctl, 1, _("could not parse arguments"));