Mercurial > hg > octave-jordi
diff src/DLD-FUNCTIONS/urlwrite.cc @ 10084:81e88250bf42
urlwrite: avoid using errno as a local variable
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 11 Jan 2010 16:07:15 -0500 |
parents | 2cd940306a06 |
children | 40dfc0c99116 |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/urlwrite.cc +++ b/src/DLD-FUNCTIONS/urlwrite.cc @@ -251,11 +251,11 @@ std::string lasterror (void) const { - CURLcode errno; + CURLcode errnum; - curl_easy_getinfo (rep->handle(), CURLINFO_OS_ERRNO, &errno); + curl_easy_getinfo (rep->handle(), CURLINFO_OS_ERRNO, &errnum); - return std::string (curl_easy_strerror (errno)); + return std::string (curl_easy_strerror (errnum)); } void set_ostream (std::ostream& os) const