]> git.street.me.uk Git - andy/viking.git/commitdiff
Portability: remove "/dev/null" reference
authorMathieu Albinet <mathieu17@gmail.com>
Tue, 3 Jun 2008 05:47:57 +0000 (05:47 +0000)
committerMathieu Albinet <mathieu17@gmail.com>
Tue, 3 Jun 2008 05:47:57 +0000 (05:47 +0000)
Spotted by Mathieu Albinet

ChangeLog
src/curl_download.c

index 82f26327e110ff3404059b051fc25ba3cd1e404c..e9dbbc559c47d5b5d90fe6cc7ce2f317687058a3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-06-02:
+Mathieu Albinet <mathieu17@gmail.com>:
+       * Portability: remove "/dev/null" use
+
 2008-05-08:
 Mathieu Albinet <mathieu17@gmail.com>:
        * Windows port: rename interface to source_interface
index 6111bfe75b38b574167b5fab2839ca5b2e4f71d5..581ddbf2b10fdd7e9fe8cd6ff5034e49c1bc32e2 100644 (file)
@@ -65,7 +65,7 @@ static gchar *get_cookie_file(gboolean init)
 
   g_mutex_lock(mutex);
   if (g_file_test(cookie_file, G_FILE_TEST_EXISTS) == FALSE) {  /* file not there */
-    FILE * out_file = g_fopen("/dev/null", "w");
+    FILE * out_file = tmpfile();
     CURLcode res;
     CURL *curl = curl_easy_init();
     if (vik_verbose)