Date: Tue, 3 Dec 2013 11:44:10 GMT From: svn-freebsd-gecko@chruetertee.ch To: freebsd-gecko@freebsd.org Subject: [SVN-Commit] r1426 - trunk/mail/thunderbird/files Message-ID: <201312031144.rB3BiAti051383@trillian.chruetertee.ch>
next in thread | raw e-mail | index | archive | help
Author: jbeich Date: Tue Dec 3 11:44:10 2013 New Revision: 1426 Log: unbreak build with clang 3.4 PR: ports/180563 Added: trunk/mail/thunderbird/files/patch-bug885538 Added: trunk/mail/thunderbird/files/patch-bug885538 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ trunk/mail/thunderbird/files/patch-bug885538 Tue Dec 3 11:44:10 2013 (r1426) @@ -0,0 +1,31 @@ + +# HG changeset patch +# User aceman <acelists@atlas.sk> +# Date 1374257425 14400 +# Node ID 89bbcd5a2293ae0338d1248b71b49338bece2bdc +# Parent baddbdd06d16665bae94e98d1570602cbc6c88ad +Bug 885538 - Fix clang compile failure in nsMsgSearchTerm.cpp by using an empty string instead of null pointer. r=rkent, a=Standard8 + +diff --git a/mailnews/base/search/src/nsMsgSearchTerm.cpp b/mailnews/base/search/src/nsMsgSearchTerm.cpp +--- mailnews/base/search/src/nsMsgSearchTerm.cpp ++++ mailnews/base/search/src/nsMsgSearchTerm.cpp +@@ -192,17 +192,17 @@ nsresult NS_MsgGetStringForAttribute(int + if (attrib == SearchAttribEntryTable[idxAttrib].attrib) + { + found = true; + *string = SearchAttribEntryTable[idxAttrib].attribName; + break; + } + } + if (!found) +- *string = '\0'; // don't leave the string uninitialized ++ *string = ""; // don't leave the string uninitialized + + // we no longer return invalid attribute. If we cannot find the string in the table, + // then it is an arbitrary header. Return success regardless if found or not + return NS_OK; + } + + typedef struct + { +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312031144.rB3BiAti051383>