[gnome-commander] noop: code cleanup



commit b05e1c1cacb9a0d5916ced7bf2b973e8144183da
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Tue Jun 28 20:05:05 2011 +0200

    noop: code cleanup

 src/utils.cc |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/utils.cc b/src/utils.cc
index a4c8cdc..6455c0e 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -1018,11 +1018,9 @@ gchar *get_temp_download_filepath (const gchar *fname)
 
 void remove_temp_download_dir ()
 {
-    const gchar *tmp_dir = g_get_tmp_dir ();
-
     if (tmp_file_dir)
     {
-        gchar *path = g_build_filename (tmp_dir, tmp_file_dir, NULL);
+        gchar *path = g_build_filename (g_get_tmp_dir (), tmp_file_dir, NULL);
         gchar *command = g_strdup_printf ("rm -rf %s", path);
         g_free (path);
         system (command);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]