diff --git a/mozilla/xpcom/components/nsRepository.cpp b/mozilla/xpcom/components/nsRepository.cpp index 17c7e080857..e07c7303519 100644 --- a/mozilla/xpcom/components/nsRepository.cpp +++ b/mozilla/xpcom/components/nsRepository.cpp @@ -667,6 +667,7 @@ nsresult nsRepository::AddToDefaultPathList(const char *pathlist) nsresult nsRepository::SyncComponentsInPathList(const char *pathlist) { +#ifndef XP_UNIX char *paths = PL_strdup(pathlist); if (paths == NULL || *paths == '\0') @@ -681,6 +682,7 @@ nsresult nsRepository::SyncComponentsInPathList(const char *pathlist) paths = nextpath; } PL_strfree(pathsMem); +#endif return (NS_OK); } diff --git a/mozilla/xpcom/src/nsRepository.cpp b/mozilla/xpcom/src/nsRepository.cpp index 17c7e080857..e07c7303519 100644 --- a/mozilla/xpcom/src/nsRepository.cpp +++ b/mozilla/xpcom/src/nsRepository.cpp @@ -667,6 +667,7 @@ nsresult nsRepository::AddToDefaultPathList(const char *pathlist) nsresult nsRepository::SyncComponentsInPathList(const char *pathlist) { +#ifndef XP_UNIX char *paths = PL_strdup(pathlist); if (paths == NULL || *paths == '\0') @@ -681,6 +682,7 @@ nsresult nsRepository::SyncComponentsInPathList(const char *pathlist) paths = nextpath; } PL_strfree(pathsMem); +#endif return (NS_OK); }