]> granicus.if.org Git - curl/commitdiff
Curl_parsenetrc: document that the arguments must be allocated
authorDaniel Stenberg <daniel@haxx.se>
Thu, 29 Aug 2013 10:49:56 +0000 (12:49 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 29 Aug 2013 10:49:56 +0000 (12:49 +0200)
lib/netrc.c

index f51fdf3407169cf40056c363ab78a96ce0d7d5c2..e35328a9ed91fd7e66eb21b8670182dbf827f771 100644 (file)
@@ -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,