From ff229c47dcee18e2723aae6f3b5cd513f79ae503 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Fri, 15 May 2009 18:34:59 +0200 Subject: Use != NULL for pointer checks. --- libempathy/empathy-ft-handler.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'libempathy/empathy-ft-handler.c') 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); -- cgit v1.2.3