summaryrefslogtreecommitdiff
path: root/telepathy-logger/util.c
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2011-02-11 11:48:08 +0000
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2011-02-11 11:48:08 +0000
commite502f9477afb0a800b3a9f7201366360aefef046 (patch)
tree568c885d4818b1fdae8bfbcaadeda3e90811719b /telepathy-logger/util.c
parentcd67dfe40b307f1294b8fc1e7e1bfb5c75f8d934 (diff)
downloadtelepathy-logger-e502f9477afb0a800b3a9f7201366360aefef046.tar.gz
Remove unused error in rmdir_resursively
Diffstat (limited to 'telepathy-logger/util.c')
-rw-r--r--telepathy-logger/util.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/telepathy-logger/util.c b/telepathy-logger/util.c
index 13dfbd4..f7be044 100644
--- a/telepathy-logger/util.c
+++ b/telepathy-logger/util.c
@@ -59,16 +59,12 @@ _tpl_rmdir_recursively (const gchar *dir_name)
{
GDir *dir;
const gchar *name;
- GError *error = NULL;
- dir = g_dir_open (dir_name, 0, &error);
+ dir = g_dir_open (dir_name, 0, NULL);
+ /* Directory does not exist, nothing to do */
if (dir == NULL)
- {
- /* Directory does not exist, nothing to do */
- g_error_free (error);
- return;
- }
+ return;
while ((name = g_dir_read_name (dir)) != NULL)
{