gpgme-1.0.3: local variable used before set

Marcus Brinkmann marcus.brinkmann at ruhr-uni-bochum.de
Fri Sep 22 13:49:00 CEST 2006


At Wed, 20 Sep 2006 17:53:02 +0200,
Ales Nosek <anosek at suse.cz> wrote:
> 
> David Binderman wrote:
> 
> I just tried to compile package gpgme-1.0.3-9 with the Intel C compiler.
> 
> It said
> 
> keylist.c(370): warning #592: variable "key" is used before its value is set
> 
> The source code is
> 
>   DEBUG3 ("keylist_colon_handler ctx = %p, key = %p, line = %s\n",
>           ctx, key, line ? line : "(null)");
> 
> I agree with the compiler. Suggest initialise local variable "key"
> before first use.

I checked in a slightly different change.

2006-09-22  Marcus Brinkmann  <marcus at g10code.de>

        * keylist.c (keylist_colon_handler): Move debug output after
        initialising KEY.

Thanks,
Marcus
 




More information about the Gnupg-devel mailing list