Skip to content
Browse files

curl_version: fixed Value stored to 'len' is never read

Fixed this (harmless) clang-analyzer warning. Also fixed the source
indentation level.
  • Loading branch information...
1 parent b9fb9c2 commit 31f39120b7803888ac5b5ed4113d112046166fb9 @bagder bagder committed
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/version.c
View
7 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;
*/

0 comments on commit 31f3912

Please sign in to comment.
Something went wrong with that request. Please try again.