aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-09-10 07:11:45 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-09-10 07:11:45 +0000
commit152cf6325d3b1b0383d9c36fab9243005e4ea456 (patch)
tree43b8c3d1b45d1fd280c996b62327ed4446429c0d /docs/examples
parentc98ab69cc7aae688db604bbaad5bcc8d3fe25cba (diff)
Checked in some grammatical and minor other fixes in the documentation and
examples that I found in the FreeBSD ports system.
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/fileupload.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/examples/fileupload.c b/docs/examples/fileupload.c
index cb88ef687..6ed523c36 100644
--- a/docs/examples/fileupload.c
+++ b/docs/examples/fileupload.c
@@ -27,7 +27,11 @@ int main(void)
return 1; /* can't continue */
}
- stat("debugit", &file_info); /* to get the file size */
+ /* to get the file size */
+ if(fstat(fileno(fd), &file_info) != 0) {
+
+ return 1; /* can't continue */
+ }
curl = curl_easy_init();
if(curl) {