From 0febd03d39e36d2955c1869abeb2074fabc5c0fc Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Wed, 10 Dec 2008 21:56:24 -0600 Subject: Fixed bad string comparison (grid code name). [#22] Reported by Balp Allen. --- linden/indra/newview/llviewernetwork.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'linden/indra/newview/llviewernetwork.cpp') diff --git a/linden/indra/newview/llviewernetwork.cpp b/linden/indra/newview/llviewernetwork.cpp index c8cffcf..2b5cc0c 100644 --- a/linden/indra/newview/llviewernetwork.cpp +++ b/linden/indra/newview/llviewernetwork.cpp @@ -163,7 +163,8 @@ std::string LLViewerLogin::getGridLabel() const std::string LLViewerLogin::getGridCodeName() const { - if( gGridInfo[mGridChoice].mCodeName == "" ) + // Fall back to grid label if code name is empty. + if( strcmp(gGridInfo[mGridChoice].mCodeName, "") == 0 ) { return getGridLabel(); } -- cgit v1.1