# HG changeset patch # User aceman # 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 {