Skip to content
Snippets Groups Projects
Commit d841ab82 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

curl_version: remove superfluous assignments

parent d6be52d8
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment