From 218b9902b2e63acf6bca159263a302004ff4d531 Mon Sep 17 00:00:00 2001 From: "bsmedberg%covad.net" Date: Wed, 12 Oct 2005 18:20:44 +0000 Subject: [PATCH] Bustage fix, bug 312000 --- xpcom/components/nsCategoryManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpcom/components/nsCategoryManager.cpp b/xpcom/components/nsCategoryManager.cpp index ac3e0d16029..e2864268c8d 100644 --- a/xpcom/components/nsCategoryManager.cpp +++ b/xpcom/components/nsCategoryManager.cpp @@ -317,7 +317,7 @@ CategoryNode::AddLeaf(const char* aEntryName, rv = NS_ERROR_OUT_OF_MEMORY; } else { if (_retval) { - char *toDup = leaf->nonpValue ? leaf->nonpValue : leaf->pValue; + const char *toDup = leaf->nonpValue ? leaf->nonpValue : leaf->pValue; if (toDup) { *_retval = ToNewCString(nsDependentCString(toDup)); if (!*_retval)