diff options
author | Daniel Stenberg <daniel@haxx.se> | 2012-08-08 14:58:09 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-08-08 14:58:09 +0200 |
commit | 31f39120b7803888ac5b5ed4113d112046166fb9 (patch) | |
tree | 881753420badabb399bee44679a19f51f81f8bd8 | |
parent | b9fb9c2380a52ad8b0dff3b9995bd8002c813175 (diff) |
curl_version: fixed Value stored to 'len' is never read
Fixed this (harmless) clang-analyzer warning. Also fixed the source
indentation level.
-rw-r--r-- | lib/version.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/version.c b/lib/version.c index c9175cf62..ef8353ae2 100644 --- a/lib/version.c +++ b/lib/version.c @@ -132,12 +132,15 @@ char *curl_version(void) else suff[0] = '\0'; - len = snprintf(ptr, left, " librtmp/%d.%d%s", - RTMP_LIB_VERSION >> 16, (RTMP_LIB_VERSION >> 8) & 0xff, suff); + snprintf(ptr, left, " librtmp/%d.%d%s", + RTMP_LIB_VERSION >> 16, (RTMP_LIB_VERSION >> 8) & 0xff, + suff); /* If another lib version is added below this one, this code would also have to do: + len = what snprintf() returned + left -= len; ptr += len; */ |