aboutsummaryrefslogtreecommitdiff
path: root/lib/netrc.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-08-29 12:49:56 +0200
committerDaniel Stenberg <daniel@haxx.se>2013-08-29 12:49:56 +0200
commit78e6683bb0bfbe90450997c0f4c63a6a59ca1886 (patch)
treea1b9420e12c9e98d713ac7ce2d3d991ddfd3a07b /lib/netrc.c
parent2f9b64ac33c577d6d9b737dbcbd23e9aad09dc95 (diff)
Curl_parsenetrc: document that the arguments must be allocated
Diffstat (limited to 'lib/netrc.c')
-rw-r--r--lib/netrc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/netrc.c b/lib/netrc.c
index f51fdf340..e35328a9e 100644
--- a/lib/netrc.c
+++ b/lib/netrc.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -50,6 +50,9 @@ enum host_lookup_state {
/*
* @unittest: 1304
+ *
+ * *loginp and *passwordp MUST be allocated if they aren't NULL when passed
+ * in.
*/
int Curl_parsenetrc(const char *host,
char **loginp,