/pidgin/main: 10ae4e6808e5: Silence perl coverity warnings

Tomasz Wasilczyk twasilczyk at pidgin.im
Tue May 6 19:28:27 EDT 2014


Changeset: 10ae4e6808e597185fa4e4a129b3cef58f7a952e
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2014-05-07 01:28 +0200
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/10ae4e6808e5

Description:

Silence perl coverity warnings

diffstat:

 libpurple/plugins/perl/common/Cipher.xs |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (43 lines):

diff --git a/libpurple/plugins/perl/common/Cipher.xs b/libpurple/plugins/perl/common/Cipher.xs
--- a/libpurple/plugins/perl/common/Cipher.xs
+++ b/libpurple/plugins/perl/common/Cipher.xs
@@ -75,6 +75,7 @@ purple_cipher_digest_region(name, data_s
 			XSRETURN_UNDEF;
 		}
 		SvCUR_set(digest, RETVAL);
+		/* coverity[extra_comma] */
 		SvPOK_only(digest);
 	OUTPUT:
 		RETVAL
@@ -188,6 +189,7 @@ purple_cipher_context_digest(context, in
 			XSRETURN_UNDEF;
 		}
 		SvCUR_set(digest, RETVAL);
+		/* coverity[extra_comma] */
 		SvPOK_only(digest);
 	OUTPUT:
 		RETVAL
@@ -210,6 +212,7 @@ purple_cipher_context_digest_to_str(cont
 			XSRETURN_UNDEF;
 		}
 		SvCUR_set(digest_s, RETVAL);
+		/* coverity[extra_comma] */
 		SvPOK_only(digest_s);
 	OUTPUT:
 		RETVAL
@@ -230,6 +233,7 @@ purple_cipher_context_encrypt(context, d
 		buff = (guchar *)SvGROW(output, datalen);
 		RETVAL = purple_cipher_context_encrypt(context, data, datalen, buff, &outlen);
 		if(outlen != 0) {
+			/* coverity[extra_comma] */
 			SvPOK_only(output);
 			SvCUR_set(output, outlen);
 		} else {
@@ -254,6 +258,7 @@ purple_cipher_context_decrypt(context, d
 		buff = (guchar *)SvGROW(output, datalen);
 		RETVAL = purple_cipher_context_decrypt(context, data, datalen, buff, &outlen);
 		if(outlen != 0) {
+			/* coverity[extra_comma] */
 			SvPOK_only(output);
 			SvCUR_set(output, outlen);
 		} else {



More information about the Commits mailing list