/soc/2013/ankitkv/gobjectification: d4caeb911491: Added a debug ...
Ankit Vani
a at nevitus.org
Sat Jun 15 12:40:19 EDT 2013
Changeset: d4caeb911491d872bd3fa47626fb31618c0beacd
Author: Ankit Vani <a at nevitus.org>
Date: 2013-06-15 22:10 +0530
Branch: soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/d4caeb911491
Description:
Added a debug warning if a cipher's reset method was called and it isn't implemented
diffstat:
libpurple/cipher.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff --git a/libpurple/cipher.c b/libpurple/cipher.c
--- a/libpurple/cipher.c
+++ b/libpurple/cipher.c
@@ -155,6 +155,10 @@ purple_cipher_reset(PurpleCipher *cipher
if(klass && klass->reset)
klass->reset(cipher);
+ else
+ purple_debug_warning("cipher", "the %s cipher does not implement the "
+ "reset method\n",
+ klass->get_name ? klass->get_name(cipher) : "");
}
/**
More information about the Commits
mailing list