curl_version: remove superfluous assignments
This commit is contained in:
@@ -107,9 +107,15 @@ char *curl_version(void)
|
|||||||
ptr += len;
|
ptr += len;
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_LIBSSH2
|
#ifdef USE_LIBSSH2
|
||||||
|
(void)snprintf(ptr, left, " libssh2/%s", CURL_LIBSSH2_VERSION);
|
||||||
|
/*
|
||||||
|
If another lib version is added below libssh2, this code would instead
|
||||||
|
have to do:
|
||||||
|
|
||||||
len = snprintf(ptr, left, " libssh2/%s", CURL_LIBSSH2_VERSION);
|
len = snprintf(ptr, left, " libssh2/%s", CURL_LIBSSH2_VERSION);
|
||||||
left -= len;
|
left -= len;
|
||||||
ptr += len;
|
ptr += len;
|
||||||
|
*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return version;
|
return version;
|
||||||
|
|||||||
Reference in New Issue
Block a user