[file-roller] fixed compiler warning
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] fixed compiler warning
- Date: Mon, 4 Oct 2010 08:33:54 +0000 (UTC)
commit 47e548f06fec7a5cd84d5b0bc1a520700d2ed985
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Oct 3 18:26:23 2010 +0200
fixed compiler warning
src/file-utils.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/file-utils.c b/src/file-utils.c
index c6bd5d3..8140ad9 100644
--- a/src/file-utils.c
+++ b/src/file-utils.c
@@ -913,13 +913,13 @@ get_temp_work_dir (const char *parent_folder)
char *template;
char *result = NULL;
- if (parent_folder == NULL) {
+ if (parent_folder == NULL) {
/* find the folder with more free space. */
-
+
for (i = 0; try_folder[i] != NULL; i++) {
char *folder;
guint64 size;
-
+
folder = ith_temp_folder_to_try (i);
size = get_dest_free_space (folder);
if (max_size < size) {
@@ -930,13 +930,13 @@ get_temp_work_dir (const char *parent_folder)
else
g_free (folder);
}
- }
- else
+ }
+ else
best_folder = g_strdup (parent_folder);
-
+
if (best_folder == NULL)
return NULL;
-
+
template = g_strconcat (best_folder, "/.fr-XXXXXX", NULL);
result = mkdtemp (template);
@@ -953,7 +953,7 @@ gboolean
is_temp_work_dir (const char *dir)
{
int i;
- const char *folder;
+ char *folder;
if (strncmp (dir, "file://", 7) == 0)
dir = dir + 7;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]