pidgin/pidgin

Parents cc3c735c14f4
Children dd84ced2309c
GChecksum throws a warning if you pass NULL to append so let's stop doing that

Testing Done:
Compiled

Reviewed at https://reviews.imfreedom.org/r/1335/
--- a/pidgin/pidgincolor.c Sat Mar 12 23:00:44 2022 -0600
+++ b/pidgin/pidgincolor.c Sat Mar 12 23:05:01 2022 -0600
@@ -41,7 +41,9 @@
/* hash the string and get the first 2 bytes of the digest */
checksum = g_checksum_new(G_CHECKSUM_SHA1);
- g_checksum_update(checksum, (const guchar *)text, -1);
+ if(text != NULL) {
+ g_checksum_update(checksum, (const guchar *)text, -1);
+ }
g_checksum_get_digest(checksum, digest, &digest_len);
g_checksum_free(checksum);