mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
removed the nth variable, it was only set and never used anyway
This commit is contained in:
parent
d57eed6f22
commit
ad1a70205f
13
lib/dict.c
13
lib/dict.c
@ -81,7 +81,6 @@
|
|||||||
|
|
||||||
CURLcode Curl_dict(struct connectdata *conn)
|
CURLcode Curl_dict(struct connectdata *conn)
|
||||||
{
|
{
|
||||||
int nth;
|
|
||||||
char *word;
|
char *word;
|
||||||
char *ppath;
|
char *ppath;
|
||||||
char *database = NULL;
|
char *database = NULL;
|
||||||
@ -129,12 +128,6 @@ CURLcode Curl_dict(struct connectdata *conn)
|
|||||||
if ((strategy == NULL) || (*strategy == (char)0)) {
|
if ((strategy == NULL) || (*strategy == (char)0)) {
|
||||||
strategy = (char *)".";
|
strategy = (char *)".";
|
||||||
}
|
}
|
||||||
if ((nthdef == NULL) || (*nthdef == (char)0)) {
|
|
||||||
nth = 0;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
nth = atoi(nthdef);
|
|
||||||
}
|
|
||||||
|
|
||||||
result = Curl_sendf(sockfd, conn,
|
result = Curl_sendf(sockfd, conn,
|
||||||
"CLIENT " LIBCURL_NAME " " LIBCURL_VERSION "\n"
|
"CLIENT " LIBCURL_NAME " " LIBCURL_VERSION "\n"
|
||||||
@ -179,12 +172,6 @@ CURLcode Curl_dict(struct connectdata *conn)
|
|||||||
if ((database == NULL) || (*database == (char)0)) {
|
if ((database == NULL) || (*database == (char)0)) {
|
||||||
database = (char *)"!";
|
database = (char *)"!";
|
||||||
}
|
}
|
||||||
if ((nthdef == NULL) || (*nthdef == (char)0)) {
|
|
||||||
nth = 0;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
nth = atoi(nthdef);
|
|
||||||
}
|
|
||||||
|
|
||||||
result = Curl_sendf(sockfd, conn,
|
result = Curl_sendf(sockfd, conn,
|
||||||
"CLIENT " LIBCURL_NAME " " LIBCURL_VERSION "\n"
|
"CLIENT " LIBCURL_NAME " " LIBCURL_VERSION "\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user