fix c&p error, unlink filename and summary_filename, not filename twice.
authorChris Toshok <toshok@ximian.com>
Wed, 14 Apr 2004 18:28:29 +0000 (18:28 +0000)
committerChris Toshok <toshok@src.gnome.org>
Wed, 14 Apr 2004 18:28:29 +0000 (18:28 +0000)
2004-04-14  Chris Toshok  <toshok@ximian.com>

* backends/file/e-book-backend-file.c
(e_book_backend_file_remove): fix c&p error, unlink filename and
summary_filename, not filename twice.

addressbook/ChangeLog
addressbook/backends/file/e-book-backend-file.c

index df46ede..41ff047 100644 (file)
@@ -1,3 +1,9 @@
+2004-04-14  Chris Toshok  <toshok@ximian.com>
+
+       * backends/file/e-book-backend-file.c
+       (e_book_backend_file_remove): fix c&p error, unlink filename and
+       summary_filename, not filename twice.
+
 2004-04-10  Sivaiah Nallagatla <snallagatla@novell.com>
 
        * backends/groupwise/e-book-backend-groupwise.c 
index 5aee3c7..96a6562 100644 (file)
@@ -1039,7 +1039,7 @@ e_book_backend_file_remove (EBookBackendSync *backend,
        /* unref the summary before we remove the file so it's not written out again */
        g_object_unref (bf->priv->summary);
        bf->priv->summary = NULL;
-       if (-1 == unlink (bf->priv->filename))
+       if (-1 == unlink (bf->priv->summary_filename))
                g_warning ("failed to remove summary file `%s`: %s", bf->priv->summary_filename, strerror (errno));
 
        dir = g_dir_open (bf->priv->dirname, 0, NULL);