mirror of
https://github.com/curl/curl.git
synced 2026-07-16 12:07:16 +03:00
curl_version: remove superfluous assignments
This commit is contained in:
parent
d6be52d80e
commit
d841ab82b8
1 changed files with 6 additions and 0 deletions
|
|
@ -107,9 +107,15 @@ char *curl_version(void)
|
|||
ptr += len;
|
||||
#endif
|
||||
#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);
|
||||
left -= len;
|
||||
ptr += len;
|
||||
*/
|
||||
#endif
|
||||
|
||||
return version;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue