Mercurial > pidgin
comparison src/server.c @ 13421:2ec69a9763a5
[gaim-migrate @ 15796]
Resolve CID 16:
Event var_compare_op: Added "gc" due to comparison "gc != 0"
126 if (gc != NULL && gc->prpl != NULL)
127 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl);
Event var_deref_op: Variable "gc" tracked as NULL was dereferenced.
132 conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, name, gc->account);
I've changed the gc and gc->prpl NULL checks into a g_return_if_fail().
committer: Tailor Script <tailor@pidgin.im>
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Tue, 07 Mar 2006 02:15:36 +0000 |
| parents | dc05405864bd |
| children | b76c6de0c3b5 |
comparison
equal
deleted
inserted
replaced
| 13420:d6530e0cd89f | 13421:2ec69a9763a5 |
|---|---|
| 117 GaimMessageFlags flags) | 117 GaimMessageFlags flags) |
| 118 { | 118 { |
| 119 GaimConversation *conv; | 119 GaimConversation *conv; |
| 120 GaimAccount *account; | 120 GaimAccount *account; |
| 121 GaimPresence *presence; | 121 GaimPresence *presence; |
| 122 GaimPluginProtocolInfo *prpl_info = NULL; | 122 GaimPluginProtocolInfo *prpl_info; |
| 123 int val = -EINVAL; | 123 int val = -EINVAL; |
| 124 const gchar *auto_reply_pref; | 124 const gchar *auto_reply_pref; |
| 125 | 125 |
| 126 if (gc != NULL && gc->prpl != NULL) | 126 g_return_val_if_fail(gc != NULL, val); |
| 127 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | 127 g_return_val_if_fail(gc->prpl != NULL, val); |
| 128 | |
| 129 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | |
| 128 | 130 |
| 129 account = gaim_connection_get_account(gc); | 131 account = gaim_connection_get_account(gc); |
| 130 presence = gaim_account_get_presence(account); | 132 presence = gaim_account_get_presence(account); |
| 131 | 133 |
| 132 conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, name, gc->account); | 134 conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, name, gc->account); |
