diff options
author | Raymond Hettinger <python@rcn.com> | 2015-07-24 04:43:44 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2015-07-24 04:43:44 (GMT) |
commit | 9f4b8605e624c249ad3d0f31d03f42c38d7ccdb2 (patch) | |
tree | 7ba058dddb5cb2bc9f299819fdf4fb30f19c0ac5 /Modules/nismodule.c | |
parent | f98c35a8160e7e373da0de4f348bbeaa3b718041 (diff) | |
download | cpython-9f4b8605e624c249ad3d0f31d03f42c38d7ccdb2.zip cpython-9f4b8605e624c249ad3d0f31d03f42c38d7ccdb2.tar.gz cpython-9f4b8605e624c249ad3d0f31d03f42c38d7ccdb2.tar.bz2 |
Issue #24300: Minor refactoring.
Diffstat (limited to 'Modules/nismodule.c')
-rw-r--r-- | Modules/nismodule.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Modules/nismodule.c b/Modules/nismodule.c index 64eb5db..b6a855c 100644 --- a/Modules/nismodule.c +++ b/Modules/nismodule.c @@ -76,11 +76,7 @@ nis_mapname (char *map, int *pfix) *pfix = 0; for (i=0; aliases[i].alias != 0L; i++) { - if (!strcmp (aliases[i].alias, map)) { - *pfix = aliases[i].fix; - return aliases[i].map; - } - if (!strcmp (aliases[i].map, map)) { + if (!strcmp (aliases[i].alias, map) || !strcmp (aliases[i].map, map)) { *pfix = aliases[i].fix; return aliases[i].map; } |