diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-04-16 23:49:03 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-04-16 23:49:03 +0200 |
commit | d841ab82b8cf3b0db5e46c2f8cf943b845ab077f (patch) | |
tree | 3ed9d41e02b13f7d7b4b68faeb3d9c85fdae65b7 /lib | |
parent | d6be52d80e10ddb04e55177a9d4afbd27aafb634 (diff) | |
download | curl-d841ab82b8cf3b0db5e46c2f8cf943b845ab077f.tar.gz |
curl_version: remove superfluous assignments
Diffstat (limited to 'lib')
-rw-r--r-- | lib/version.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/version.c b/lib/version.c index aa86e3902..86cb113d7 100644 --- a/lib/version.c +++ b/lib/version.c @@ -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; |