mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
curl_version: fixed Value stored to 'len' is never read
Fixed this (harmless) clang-analyzer warning. Also fixed the source indentation level.
This commit is contained in:
parent
b9fb9c2380
commit
31f39120b7
@ -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;
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user