diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2010-11-27 17:39:03 -0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-11-29 13:27:15 -0600 |
commit | b210838e87b737911a9bfbcf75ccd3d78736dad7 (patch) | |
tree | 91a91e0a120c70283b5ae3af0776cc19ab36fc76 /src/message-waiting.c | |
parent | 42bafa260a844c46d1de2f878464165bfad0ab75 (diff) | |
download | ofono-b210838e87b737911a9bfbcf75ccd3d78736dad7.tar.bz2 |
core: explicitly compare pointers to NULL
This patch was generated by the following semantic patch
(http://coccinelle.lip6.fr/)
// <smpl>
@fix disable is_null,isnt_null1@
expression *E;
@@
- !E
+ E == NULL
// </smpl>
Diffstat (limited to 'src/message-waiting.c')
-rw-r--r-- | src/message-waiting.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/message-waiting.c b/src/message-waiting.c index 97a238c0..d8bfe34b 100644 --- a/src/message-waiting.c +++ b/src/message-waiting.c @@ -119,7 +119,7 @@ static DBusMessage *mw_get_properties(DBusConnection *conn, const char *number; reply = dbus_message_new_method_return(msg); - if (!reply) + if (reply == NULL) return NULL; dbus_message_iter_init_append(reply, &iter); @@ -395,7 +395,7 @@ static void update_indicator_and_emit(struct ofono_message_waiting *mw, indication = info->indication; count = info->message_count; - if (!mw_message_waiting_property_name[mailbox]) + if (mw_message_waiting_property_name[mailbox] == NULL) return; ofono_dbus_signal_property_changed(conn, path, |