]> granicus.if.org Git - curl/commitdiff
curl_version: remove superfluous assignments
authorDaniel Stenberg <daniel@haxx.se>
Fri, 16 Apr 2010 21:49:03 +0000 (23:49 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 16 Apr 2010 21:49:03 +0000 (23:49 +0200)
lib/version.c

index aa86e390241e7d477f7fd96d730b577150756694..86cb113d751f1b79214c4797e491f7fe313c0a31 100644 (file)
@@ -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;