diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-01-27 21:52:44 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-01-27 21:52:44 +0800 |
commit | 3ed0f94e31b15f98eabd0af660e4a3a1f315faa5 (patch) | |
tree | 036a6a741f989847f9c5a6c0994e2ac05a4252c6 /lib/ephy-file-helpers.c | |
parent | 7c0b959f0387ff24b16ef566813e61bdd9734705 (diff) | |
download | gsoc2013-epiphany-3ed0f94e31b15f98eabd0af660e4a3a1f315faa5.tar gsoc2013-epiphany-3ed0f94e31b15f98eabd0af660e4a3a1f315faa5.tar.gz gsoc2013-epiphany-3ed0f94e31b15f98eabd0af660e4a3a1f315faa5.tar.bz2 gsoc2013-epiphany-3ed0f94e31b15f98eabd0af660e4a3a1f315faa5.tar.lz gsoc2013-epiphany-3ed0f94e31b15f98eabd0af660e4a3a1f315faa5.tar.xz gsoc2013-epiphany-3ed0f94e31b15f98eabd0af660e4a3a1f315faa5.tar.zst gsoc2013-epiphany-3ed0f94e31b15f98eabd0af660e4a3a1f315faa5.zip |
Only try to rmdir() the tmp directory if we have one.
2004-01-27 Christian Persch <chpe@cvs.gnome.org>
* lib/ephy-file-helpers.c: (ephy_file_helpers_shutdown):
Only try to rmdir() the tmp directory if we have one.
Diffstat (limited to 'lib/ephy-file-helpers.c')
-rw-r--r-- | lib/ephy-file-helpers.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c index 481d170c6..1c316f8f4 100644 --- a/lib/ephy-file-helpers.c +++ b/lib/ephy-file-helpers.c @@ -188,9 +188,12 @@ ephy_file_helpers_shutdown (void) g_list_free (del_on_exit); del_on_exit = NULL; - rmdir (tmp_dir); - g_free (tmp_dir); - tmp_dir = NULL; + if (tmp_dir != NULL) + { + rmdir (tmp_dir); + g_free (tmp_dir); + tmp_dir = NULL; + } g_free (dot_dir); dot_dir = NULL; |