summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-03-16 00:19:26 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-03-16 00:19:26 +0100
commite1146489913e60028e47c89f52f56457f56da54b (patch)
tree96044c8d47dc4614f51843055bd090d216f14cf8
parentb8118dd49589f2ccfc7c3ef4ff4dacf994614333 (diff)
downloadcurl-e1146489913e60028e47c89f52f56457f56da54b.tar.gz
scan-build warning
Value stored to 'len' is never read
-rw-r--r--lib/socks_gssapi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/socks_gssapi.c b/lib/socks_gssapi.c
index 1decbafd4..3bccc79ac 100644
--- a/lib/socks_gssapi.c
+++ b/lib/socks_gssapi.c
@@ -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;
}