Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorJuanjo MarĂ­n <juanj.marin@juntadeandalucia.es>2009-05-17 13:22:31 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@yandex.ru>2009-05-17 13:22:31 (GMT)
commit418246aaa10bc512aa310cb3b3aa82b6c4aeb13b (patch)
tree90e9e0349c9d60f3d9e7e668990bb2eaa0d0ff44 /backend
parent7a50118117bf029d8b73bc85221cb5ab06b2510c (diff)
[comics] Fixes handling of the tmp folder
Uses common function for a temporary file creation. Fixes crash in GNOME bug #582108.
Diffstat (limited to 'backend')
-rw-r--r--backend/comics/comics-document.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/backend/comics/comics-document.c b/backend/comics/comics-document.c
index 29a1581..ca15471 100644
--- a/backend/comics/comics-document.c
+++ b/backend/comics/comics-document.c
@@ -183,7 +183,7 @@ static gboolean
comics_generate_command_lines (ComicsDocument *comics_document,
GError **error)
{
- gchar *quoted_file, *checksum;
+ gchar *quoted_file;
ComicBookDecompressType type;
type = comics_document->command_usage;
@@ -198,19 +198,13 @@ comics_generate_command_lines (ComicsDocument *comics_document,
quoted_file);
comics_document->regex_arg = command_usage_def[type].regex_arg;
if (command_usage_def[type].decompress_tmp) {
- checksum =
- g_compute_checksum_for_string (G_CHECKSUM_MD5,
- comics_document->archive,
- -1);
- comics_document->dir = g_build_filename (ev_tmp_dir (),
- checksum, NULL);
+ comics_document->dir = ev_tmp_directory (NULL);
comics_document->decompress_tmp =
g_strdup_printf (command_usage_def[type].decompress_tmp,
comics_document->selected_command,
quoted_file,
comics_document->dir);
g_free (quoted_file);
- g_free (checksum);
/* unrar-free can't create directories so we do it on its
* behalf */
if (type == GNAUNRAR) {