pidgin: f5dafda2: Fix annoying, but generally useless warn...
qulogic at pidgin.im
qulogic at pidgin.im
Sat Dec 12 22:35:55 EST 2009
-----------------------------------------------------------------
Revision: f5dafda2854ad5c6934d84a69ca9f561575eb35a
Ancestor: bb09c1ec048f9cf29c1b8de94c5781a39878380e
Author: qulogic at pidgin.im
Date: 2009-12-13T02:36:08
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/f5dafda2854ad5c6934d84a69ca9f561575eb35a
Modified files:
libpurple/tests/test_cipher.c
ChangeLog:
Fix annoying, but generally useless warning.
-------------- next part --------------
============================================================
--- libpurple/tests/test_cipher.c c0799fa73cfe6b1361a634cb5d5f4e74398afc1f
+++ libpurple/tests/test_cipher.c 773c2ab6f21fb2337f3a49f848672b48f0f4ff8a
@@ -142,12 +142,13 @@ END_TEST
PurpleCipherContext *context = NULL; \
gchar cdigest[41]; \
gboolean ret = FALSE; \
+ gchar *input = data; \
\
cipher = purple_ciphers_find_cipher("sha1"); \
context = purple_cipher_context_new(cipher, NULL); \
\
- if((data)) { \
- purple_cipher_context_append(context, (guchar *)(data), strlen((data))); \
+ if (input) { \
+ purple_cipher_context_append(context, (guchar *)input, strlen(input)); \
} else { \
gint j; \
guchar buff[1000]; \
@@ -202,12 +203,13 @@ END_TEST
PurpleCipherContext *context = NULL; \
gchar cdigest[65]; \
gboolean ret = FALSE; \
+ gchar *input = data; \
\
cipher = purple_ciphers_find_cipher("sha256"); \
context = purple_cipher_context_new(cipher, NULL); \
\
- if((data)) { \
- purple_cipher_context_append(context, (guchar *)(data), strlen((data))); \
+ if (input) { \
+ purple_cipher_context_append(context, (guchar *)input, strlen(input)); \
} else { \
gint j; \
guchar buff[1000]; \
More information about the Commits
mailing list