Fix attempting use of log in non-logging builds. This was causing the

.so to fail to register.  Not part of the build.
This commit is contained in:
dmose%mozilla.org 2005-01-06 20:12:57 +00:00
Родитель b7f60adcc4
Коммит 3d5fc07399
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -157,6 +157,7 @@ nsWebDAVService::SendDocumentToChannel(nsIDocument *doc,
storageOutputStream->Close();
// You gotta really want it.
#ifdef PR_LOGGING
if (PR_LOG_TEST(gDAVLog, 5)) {
nsCOMPtr<nsIInputStream> logInputStream;
rv = storageStream->NewInputStream(0, getter_AddRefs(logInputStream));
@ -173,6 +174,7 @@ nsWebDAVService::SendDocumentToChannel(nsIDocument *doc,
delete [] buf;
}
#endif
nsCOMPtr<nsIInputStream> inputStream;
rv = storageStream->NewInputStream(0, getter_AddRefs(inputStream));