зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1724526 - Stop using PL_strchr in toolkit code r=Gijs
Depends on D122060 Differential Revision: https://phabricator.services.mozilla.com/D122061
This commit is contained in:
Родитель
ec22be8442
Коммит
ebb28aa61e
|
@ -386,7 +386,7 @@ nsCommandLine::Init(int32_t argc, const char* const* argv, nsIFile* aWorkingDir,
|
|||
if (!dup) return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
*dup = '-';
|
||||
char* colon = PL_strchr(dup, ':');
|
||||
char* colon = strchr(dup, ':');
|
||||
if (colon) {
|
||||
*colon = '\0';
|
||||
appendArg(dup);
|
||||
|
@ -404,7 +404,7 @@ nsCommandLine::Init(int32_t argc, const char* const* argv, nsIFile* aWorkingDir,
|
|||
char* dup = strdup(curarg);
|
||||
if (!dup) return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
char* eq = PL_strchr(dup, '=');
|
||||
char* eq = strchr(dup, '=');
|
||||
if (eq) {
|
||||
*eq = '\0';
|
||||
appendArg(dup);
|
||||
|
|
Загрузка…
Ссылка в новой задаче