Fixup a bad strcmp call landed in previous commit

This commit is contained in:
Ted Mielczarek 2015-09-16 19:25:35 -04:00
parent 8079ae192d
commit 3520fc314b

View file

@ -180,7 +180,7 @@ const NXArchInfo *NXGetLocalArchInfo(void) {
const NXArchInfo *NXGetArchInfoFromName(const char *name) {
for (int arch = 0; arch < kNumArchitectures; ++arch) {
if (strcmp(name, kKnownArchitectures[arch].name)) {
if (!strcmp(name, kKnownArchitectures[arch].name)) {
return &kKnownArchitectures[arch];
}
}