diff options
Diffstat (limited to 'libempathy/empathy-ft-handler.c')
-rw-r--r-- | libempathy/empathy-ft-handler.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c index 292df0dbf..c5a489219 100644 --- a/libempathy/empathy-ft-handler.c +++ b/libempathy/empathy-ft-handler.c @@ -597,7 +597,7 @@ empathy_ft_handler_new_outgoing (EmpathyContact *contact, GFile *source) { g_return_val_if_fail (EMPATHY_IS_CONTACT (contact), NULL); - g_return_val_if_fail (G_IS_FILE (file), NULL); + g_return_val_if_fail (G_IS_FILE (source), NULL); return g_object_new (EMPATHY_TYPE_FT_HANDLER, "contact", contact, "gfile", source, NULL); @@ -607,7 +607,8 @@ EmpathyFTHandler * empathy_ft_handler_new_incoming (EmpathyTpFile *tp_file, GFile *destination) { - g_return_val_if_fail (EMPATHY_IS_TP_FILE (file), NULL); + g_return_val_if_fail (EMPATHY_IS_TP_FILE (tp_file), NULL); + g_return_val_if_fail (G_IS_FILE (destination), NULL); return g_object_new (EMPATHY_TYPE_FT_HANDLER, "tp-file", tp_file, "gfile", destination, NULL); |