|
bagder: curl/lib cookie.c,1.70,1.71: msg#00037web.curl.cvs
Update of /cvsroot/curl/curl/lib In directory labb:/tmp/cvs-serv6031 Modified Files: cookie.c Log Message: curl standard indent/format Index: cookie.c =================================================================== RCS file: /cvsroot/curl/curl/lib/cookie.c,v retrieving revision 1.70 retrieving revision 1.71 diff -u -d -r1.70 -r1.71 --- cookie.c 27 Jul 2005 22:17:15 -0000 1.70 +++ cookie.c 28 Jul 2005 21:49:58 -0000 1.71 @@ -906,32 +906,33 @@ struct curl_slist *Curl_cookie_list(struct SessionHandle *data) { - struct curl_slist *list = NULL; - struct curl_slist *beg; - struct Cookie *c; - char *line; + struct curl_slist *list = NULL; + struct curl_slist *beg; + struct Cookie *c; + char *line; - if (data->cookies == NULL) return NULL; - if (data->cookies->numcookies == 0) return NULL; + if ((data->cookies == NULL) || + (data->cookies->numcookies == 0)) + return NULL; - c = data->cookies->cookies; + c = data->cookies->cookies; - beg = list; - while (c) { - /* fill the list with _all_ the cookies we know */ - line = get_netscape_format(c); - if (line == NULL) { - /* get_netscape_format returns null only if we run out of memory */ + beg = list; + while (c) { + /* fill the list with _all_ the cookies we know */ + line = get_netscape_format(c); + if (line == NULL) { + /* get_netscape_format returns null only if we run out of memory */ - curl_slist_free_all(beg); /* free some memory */ - return NULL; - } - list = curl_slist_append(list, line); - free(line); - c = c->next; - } + curl_slist_free_all(beg); /* free some memory */ + return NULL; + } + list = curl_slist_append(list, line); + free(line); + c = c->next; + } - return list; + return list; } #endif /* CURL_DISABLE_HTTP || CURL_DISABLE_COOKIES */ _______________________________________________ http://cool.haxx.se/mailman/listinfo/curl-commits |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | giva: curl/tests/libtest lib505.c,1.8,1.9: 00037, cvs |
|---|---|
| Next by Date: | bagder: curl/lib url.c,1.469,1.470: 00037, cvs |
| Previous by Thread: | giva: curl/tests/libtest lib505.c,1.8,1.9i: 00037, cvs |
| Next by Thread: | bagder: curl/lib url.c,1.469,1.470: 00037, cvs |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |