summaryrefslogtreecommitdiff
path: root/libpurple/purpleprotocolclient.h
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2022-09-05 20:35:48 -0500
committerElliott Sales de Andrade <quantum.analyst@gmail.com>2022-09-05 20:35:48 -0500
commit9ea3d328c507356d068a33d39cc7740977a74ab9 (patch)
tree9eae1e8a60aa1ea2fdb876480bb9c789003a1284 /libpurple/purpleprotocolclient.h
parenta3c4d5210d4a1251f81c53d6c16d39c888b66a33 (diff)
downloadpidgin-9ea3d328c507356d068a33d39cc7740977a74ab9.tar.gz
Remove unnecessary NULL check
The account is allowed to be `NULL` here, according to the vfunc documentation, but the interface method incorrectly enforced non-`NULL`. This fixes a critical when selecting Gadu-Gadu in the account editor, as it is the only prpl to implement this method. Testing Done: Selected Gadu-Gadu in a new account, saw no warnings, and the placeholder text was now added to username. Reviewed at https://reviews.imfreedom.org/r/1718/
Diffstat (limited to 'libpurple/purpleprotocolclient.h')
-rw-r--r--libpurple/purpleprotocolclient.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpurple/purpleprotocolclient.h b/libpurple/purpleprotocolclient.h
index 7a8c68cccd..758c15d2c2 100644
--- a/libpurple/purpleprotocolclient.h
+++ b/libpurple/purpleprotocolclient.h
@@ -301,7 +301,7 @@ gboolean purple_protocol_client_offline_message(PurpleProtocolClient *client, Pu
/**
* purple_protocol_client_get_account_text_table:
* @client: The #PurpleProtocolClient instance.
- * @account: A #PurpleAccount instance.
+ * @account: (nullable): A #PurpleAccount instance.
*
* Gets the account text table which allows protocols to specify additional
* strings to be used for various purposes. The idea is to stuff a bunch of