From: Mathieu Albinet Date: Tue, 3 Jun 2008 05:47:57 +0000 (+0000) Subject: Portability: remove "/dev/null" reference X-Git-Url: https://git.street.me.uk/andy/viking.git/commitdiff_plain/c7f6cb25e85f0c8be9c19b0390470144a591ad3f Portability: remove "/dev/null" reference Spotted by Mathieu Albinet --- diff --git a/ChangeLog b/ChangeLog index 82f26327..e9dbbc55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-06-02: +Mathieu Albinet : + * Portability: remove "/dev/null" use + 2008-05-08: Mathieu Albinet : * Windows port: rename interface to source_interface diff --git a/src/curl_download.c b/src/curl_download.c index 6111bfe7..581ddbf2 100644 --- a/src/curl_download.c +++ b/src/curl_download.c @@ -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)