mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
scan-build warning
Value stored to 'len' is never read
This commit is contained in:
parent
b8118dd495
commit
e114648991
@ -97,10 +97,8 @@ static int check_gss_err(struct SessionHandle *data,
|
||||
GSS_C_NULL_OID,
|
||||
&msg_ctx, &status_string);
|
||||
if(maj_stat == GSS_S_COMPLETE) {
|
||||
if(sizeof(buf) > len + status_string.length) {
|
||||
if(sizeof(buf) > len + status_string.length)
|
||||
strcpy(buf+len, (char*) status_string.value);
|
||||
len += status_string.length;
|
||||
}
|
||||
gss_release_buffer(&min_stat, &status_string);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user