diff --git a/xpcom/base/nsTraceRefcnt.cpp b/xpcom/base/nsTraceRefcnt.cpp index 533f34496175..7cf169a2c6c7 100644 --- a/xpcom/base/nsTraceRefcnt.cpp +++ b/xpcom/base/nsTraceRefcnt.cpp @@ -535,10 +535,10 @@ nsTraceRefcnt::DemangleSymbol(const char * aSymbol, int aBufLen) { NS_ASSERTION(nsnull != aSymbol,"null symbol"); - NS_ASSERTION(nsnull != aDemangledSymbol,"null out param"); + NS_ASSERTION(nsnull != aBuffer,"null buffer"); // lose - *aDemangledSymbol = nsnull; + aBuffer[0] = '\0'; } #endif // __linux__ diff --git a/xpcom/base/nsTraceRefcntImpl.cpp b/xpcom/base/nsTraceRefcntImpl.cpp index 533f34496175..7cf169a2c6c7 100644 --- a/xpcom/base/nsTraceRefcntImpl.cpp +++ b/xpcom/base/nsTraceRefcntImpl.cpp @@ -535,10 +535,10 @@ nsTraceRefcnt::DemangleSymbol(const char * aSymbol, int aBufLen) { NS_ASSERTION(nsnull != aSymbol,"null symbol"); - NS_ASSERTION(nsnull != aDemangledSymbol,"null out param"); + NS_ASSERTION(nsnull != aBuffer,"null buffer"); // lose - *aDemangledSymbol = nsnull; + aBuffer[0] = '\0'; } #endif // __linux__