diff options
author | Cosimo Cecchi <cosimo.cecchi@collabora.co.uk> | 2009-05-16 00:34:59 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2009-06-01 23:53:18 +0800 |
commit | ff229c47dcee18e2723aae6f3b5cd513f79ae503 (patch) | |
tree | 34caa68e3c71a94a33e387823a62202b683a3c2b /libempathy/empathy-ft-handler.c | |
parent | 99e69fa352b25ae65d636a2ab464886d1b8f8af1 (diff) | |
download | gsoc2013-empathy-ff229c47dcee18e2723aae6f3b5cd513f79ae503.tar gsoc2013-empathy-ff229c47dcee18e2723aae6f3b5cd513f79ae503.tar.gz gsoc2013-empathy-ff229c47dcee18e2723aae6f3b5cd513f79ae503.tar.bz2 gsoc2013-empathy-ff229c47dcee18e2723aae6f3b5cd513f79ae503.tar.lz gsoc2013-empathy-ff229c47dcee18e2723aae6f3b5cd513f79ae503.tar.xz gsoc2013-empathy-ff229c47dcee18e2723aae6f3b5cd513f79ae503.tar.zst gsoc2013-empathy-ff229c47dcee18e2723aae6f3b5cd513f79ae503.zip |
Use != NULL for pointer checks.
Diffstat (limited to 'libempathy/empathy-ft-handler.c')
-rw-r--r-- | libempathy/empathy-ft-handler.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c index 98e4dc6e5..29b3387f2 100644 --- a/libempathy/empathy-ft-handler.c +++ b/libempathy/empathy-ft-handler.c @@ -177,23 +177,23 @@ do_dispose (GObject *object) priv->dispose_run = TRUE; - if (priv->contact) { + if (priv->contact != NULL) { g_object_unref (priv->contact); priv->contact = NULL; } - if (priv->gfile) { + if (priv->gfile != NULL) { g_object_unref (priv->gfile); priv->gfile = NULL; } - if (priv->tpfile) { + if (priv->tpfile != NULL) { empathy_tp_file_close (priv->tpfile); g_object_unref (priv->tpfile); priv->tpfile = NULL; } - if (priv->cancellable) { + if (priv->cancellable != NULL) { g_object_unref (priv->cancellable); priv->cancellable = NULL; } @@ -753,7 +753,7 @@ again: } out: - if (error) + if (error != NULL) hash_data->error = error; g_io_scheduler_job_send_to_mainloop_async (job, hash_job_done, @@ -778,7 +778,7 @@ do_hash_job_incoming (GIOSchedulerJob *job, hash_data->stream = G_INPUT_STREAM (g_file_read (priv->gfile, cancellable, &error)); - if (error) + if (error != NULL) { hash_data->error = error; g_io_scheduler_job_send_to_mainloop_async (job, hash_job_done, @@ -868,7 +868,7 @@ callbacks_data_free (gpointer user_data) { CallbacksData *data = user_data; - if (data->handler) + if (data->handler != NULL) g_object_unref (data->handler); g_slice_free (CallbacksData, data); |