aboutsummaryrefslogtreecommitdiff
path: root/src/gui_index.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_index.c')
-rw-r--r--src/gui_index.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui_index.c b/src/gui_index.c
index a9037003..7aaefbf6 100644
--- a/src/gui_index.c
+++ b/src/gui_index.c
@@ -514,6 +514,12 @@ static char *enter_gui_tempdir()
}
+ if ( chdir(tmpdir) ) {
+ ERROR("Failed to chdir to temporary fodler: %s\n",
+ strerror(errno));
+ /* Still return as usual */
+ }
+
return tmpdir;
}