From: Daniel Stenberg Date: Thu, 29 Aug 2013 10:49:56 +0000 (+0200) Subject: Curl_parsenetrc: document that the arguments must be allocated X-Git-Tag: curl-7_33_0~196 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78e6683bb0bfbe90450997c0f4c63a6a59ca1886;p=curl Curl_parsenetrc: document that the arguments must be allocated --- 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, , et al. + * Copyright (C) 1998 - 2013, Daniel Stenberg, , 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,