зеркало из https://github.com/mozilla/gecko-dev.git
Bugzilla bug 221124: declare variables with const. Thanks to
timeless@bemail.org for the patch.
This commit is contained in:
Родитель
1ddd219db3
Коммит
2274da47a9
|
@ -1126,14 +1126,14 @@ pr_LoadLibraryByPathname(const char *name, PRIntn flags)
|
|||
|
||||
cookie = 0;
|
||||
while (get_next_image_info(0, &cookie, &info) == B_OK) {
|
||||
char *endOfSystemName = strrchr(info.name, '/');
|
||||
char *endOfPassedName = strrchr(name, '/');
|
||||
const char *endOfSystemName = strrchr(info.name, '/');
|
||||
const char *endOfPassedName = strrchr(name, '/');
|
||||
if( 0 == endOfSystemName )
|
||||
endOfSystemName=info.name;
|
||||
endOfSystemName = info.name;
|
||||
else
|
||||
endOfSystemName++;
|
||||
if( 0 == endOfPassedName )
|
||||
endOfPassedName=name;
|
||||
endOfPassedName = name;
|
||||
else
|
||||
endOfPassedName++;
|
||||
if (strcmp(endOfSystemName, endOfPassedName) == 0) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче