[Commits] sgpgme.c 1.1.2.73 1.1.2.74

colin at claws-mail.org colin at claws-mail.org
Wed Sep 12 11:23:15 CEST 2012


Update of /home/claws-mail/claws/src/plugins/pgpcore
In directory srv:/tmp/cvs-serv1241/src/plugins/pgpcore

Modified Files:
      Tag: gtk2
	sgpgme.c 
Log Message:
2012-09-12 [colin]	3.8.1cvs52

	* src/addressbook.c
	* src/addrharvest.c
	* src/addrindex.c
	* src/addritem.c
	* src/compose.c
	* src/edittags.c
	* src/folder.c
	* src/imap.c
	* src/inc.c
	* src/ldif.c
	* src/mainwindow.c
	* src/mbox.c
	* src/mimeview.c
	* src/mutt.c
	* src/partial_download.c
	* src/prefs_filtering_action.c
	* src/prefs_toolbar.c
	* src/printing.c
	* src/procheader.c
	* src/procmime.c
	* src/procmsg.c
	* src/summaryview.c
	* src/textview.c
	* src/common/utils.c
	* src/etpan/imap-thread.c
	* src/gtk/gtkaspell.c
	* src/plugins/pgpcore/sgpgme.c
		More fixes from bug #1961:
		- Write-only variables
		- Null pointer dereferences
		- A couple other fixes for which the reporter
		  was unsure, but which showed problems.
		More details in bug #1961 comments.

Index: sgpgme.c
===================================================================
RCS file: /home/claws-mail/claws/src/plugins/pgpcore/Attic/sgpgme.c,v
retrieving revision 1.1.2.73
retrieving revision 1.1.2.74
diff -u -d -r1.1.2.73 -r1.1.2.74
--- sgpgme.c	29 Aug 2012 14:31:35 -0000	1.1.2.73
+++ sgpgme.c	12 Sep 2012 09:23:13 -0000	1.1.2.74
@@ -85,7 +85,6 @@
 
 SignatureStatus sgpgme_sigstat_gpgme_to_privacy(gpgme_ctx_t ctx, gpgme_verify_result_t status)
 {
-	unsigned long validity = 0;
 	gpgme_signature_t sig = NULL;
 	
 	if (GPOINTER_TO_INT(status) == -GPG_ERR_SYSTEM_ERROR) {
@@ -103,7 +102,6 @@
 		debug_print("sig == NULL\n");
 		return SIGNATURE_UNCHECKED;
 	}
-	validity = sig->validity;
 
 	debug_print("err code %d\n", gpg_err_code(sig->status));
 	switch (gpg_err_code(sig->status)) {



More information about the Commits mailing list