diff options
author | qarkai <qarkai@gmail.com> | 2017-03-24 12:29:27 +0300 |
---|---|---|
committer | qarkai <qarkai@gmail.com> | 2017-03-24 12:29:27 +0300 |
commit | 55cc05915e68bccb7dc753d2d4830687e656a00e (patch) | |
tree | c0c33c4c183d6c0938844079ada89f27ab60f2bd /finch/gntrequest.c | |
parent | aa415b4537814485863797aaf4cdd1c55b579ae7 (diff) | |
download | pidgin-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.c | 2 |
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)) { |