[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[help-gengetopt] required() patch - my fault, sorry
From: |
Gyozo, PAPP (VBuster) |
Subject: |
[help-gengetopt] required() patch - my fault, sorry |
Date: |
Tue, 28 Sep 2004 13:29:04 +0200 |
Hi,
my previous patch which introduce _required() interface function was buggy, the
"int result" local variable was not initialized, so it was unpredictable what
the function would return in case of no missing options.
@address@hidden (struct @args_info@ *args_info, const char *prog_name)
{
@IF@ check_required_options @THEN@
int result = EXIT_SUCCESS;
if (@address@hidden(args_info, prog_name, NULL) > 0)
result = EXIT_FAILURE;
@final_exit@
@ELSE@
return EXIT_SUCCESS;
@ENDIF@
}
--
Papp, Győző
VirusBuster Kft
required.patch
Description: required.patch
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [help-gengetopt] required() patch - my fault, sorry,
Gyozo, PAPP (VBuster) <=