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 <[email protected]> +# 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 + { + _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-gecko To unsubscribe, send any mail to "[email protected]"
