[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnutls-dev] [opencdk] Uninitialized variable in tests/t-stream.c
From: |
Nikos Mavrogiannopoulos |
Subject: |
Re: [gnutls-dev] [opencdk] Uninitialized variable in tests/t-stream.c |
Date: |
Mon, 7 Mar 2005 09:27:48 +0100 |
User-agent: |
KMail/1.7.2 |
On Thursday 03 March 2005 12:56, Enrico Scholz wrote:
> Hello,
>
> somebody reported in
> https://bugzilla.redhat.com/beta/show_bug.cgi?id=149906
> the following issue:
Hello Enrico,
Thank you for the bug report. I've commited a fix (i disabled this print) to
the cvs. However this is in the test suite of opencdk and not really used by
gnutls.
> | I just tried to compile package opencdk-0.5.5-1 from
> | Redhat Fedora Extras development tree.
> |
> | The compiler said
> |
> | t-stream.c(452): remark #592: variable "rc" is used before its value
> | is set
> |
> | The source code is
> |
> | int rc ;
> |
> | cdk_handle_new (&hd);
> | cdk_keydb_new (&db, CDK_DBTYPE_SK_KEYRING, "sec.gpg", 7);
> | cdk_strlist_add (&locusr, "address@hidden");
> | //rc = cdk_file_clearsign (hd, locusr, file, "out.asc");
> | if (rc)
> | printf ("clearsign_file %s: `%s'\n", file, cdk_strerror (rc));
> |
> | Suggest init local variable "rc" before first use. Should the
> | commented out code be put back in ?
>
> This code is still in CVS.
>
>
>
>
> Enrico
--
Nikos Mavrogiannopoulos