summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-27 18:22:55 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-27 18:22:55 +0000
commit77593a9e0957558d59b72419ba6bc44a824e9e22 (patch)
tree8ddd47ef5e207270e26ae8b891da117a63a51095
parentd7077da97fd46356efc98cfc6b4fd1517228ea2e (diff)
downloadchromium_src-77593a9e0957558d59b72419ba6bc44a824e9e22.zip
chromium_src-77593a9e0957558d59b72419ba6bc44a824e9e22.tar.gz
chromium_src-77593a9e0957558d59b72419ba6bc44a824e9e22.tar.bz2
Remove a C99-ism that Visual C++ doesn't support -- declare a variable in
the middle of a block. R=agl BUG=none TEST=no compilation error on Linux. Review URL: http://codereview.chromium.org/552178 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37270 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--net/third_party/nss/ssl/ssl3ext.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/third_party/nss/ssl/ssl3ext.c b/net/third_party/nss/ssl/ssl3ext.c
index 7b8c646..1eaf47c 100644
--- a/net/third_party/nss/ssl/ssl3ext.c
+++ b/net/third_party/nss/ssl/ssl3ext.c
@@ -514,13 +514,14 @@ ssl3_ClientSendNextProtoNegoXtn(sslSocket * ss,
if (append && maxBytes >= extension_length) {
SECStatus rv;
+ TLSExtensionData *xtnData;
rv = ssl3_AppendHandshakeNumber(ss, next_proto_neg_xtn, 2);
if (rv != SECSuccess)
goto loser;
rv = ssl3_AppendHandshakeNumber(ss, 0, 2);
if (rv != SECSuccess)
goto loser;
- TLSExtensionData *xtnData = &ss->xtnData;
+ xtnData = &ss->xtnData;
xtnData->advertised[xtnData->numAdvertised++] = next_proto_neg_xtn;
} else if (maxBytes < extension_length) {
return 0;