diff options
Diffstat (limited to 'addressbook/gui/widgets/eab-gui-util.c')
-rw-r--r-- | addressbook/gui/widgets/eab-gui-util.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c index 27b81e7110..6b8973637b 100644 --- a/addressbook/gui/widgets/eab-gui-util.c +++ b/addressbook/gui/widgets/eab-gui-util.c @@ -353,7 +353,6 @@ save_it(GtkWidget *widget, SaveAsInfo *info) { const char *filename; char *uri; - gint error = 0; gint response = 0; @@ -370,8 +369,7 @@ save_it(GtkWidget *widget, SaveAsInfo *info) } } - error = e_write_file_uri (uri, info->vcard); - if (error != 0) { + if (!e_write_file_uri (uri, info->vcard)) { char *err_str_ext; if (info->has_multiple_contacts) { /* more than one, finding the total number of contacts might |