summaryrefslogtreecommitdiff
path: root/finch/gntrequest.c
diff options
context:
space:
mode:
authorqarkai <qarkai@gmail.com>2017-03-24 12:29:27 +0300
committerqarkai <qarkai@gmail.com>2017-03-24 12:29:27 +0300
commit55cc05915e68bccb7dc753d2d4830687e656a00e (patch)
treec0c33c4c183d6c0938844079ada89f27ab60f2bd /finch/gntrequest.c
parentaa415b4537814485863797aaf4cdd1c55b579ae7 (diff)
downloadpidgin-55cc05915e68bccb7dc753d2d4830687e656a00e.tar.gz
Remove redundant NULL checks
If one of purple_strequal() operands is non-NULL, there is no need to check if other is NULL.
Diffstat (limited to 'finch/gntrequest.c')
-rw-r--r--finch/gntrequest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/finch/gntrequest.c b/finch/gntrequest.c
index 7ec4177883..37521fc0c9 100644
--- a/finch/gntrequest.c
+++ b/finch/gntrequest.c
@@ -455,7 +455,7 @@ create_string_field(PurpleRequestField *field, GntWidget **username)
gnt_entry_set_always_suggest(GNT_ENTRY(entry), TRUE);
if (username)
*username = entry;
- } else if (hint && purple_strequal(hint, "group")) {
+ } else if (purple_strequal(hint, "group")) {
PurpleBlistNode *node;
for (node = purple_blist_get_root(); node;
node = purple_blist_node_get_sibling_next(node)) {