diff options
-rw-r--r-- | sys-utils/setarch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c index f84e90b5b..1a2ae1b68 100644 --- a/sys-utils/setarch.c +++ b/sys-utils/setarch.c @@ -246,7 +246,7 @@ static struct arch_domain *get_arch_domain(struct arch_domain *doms, const char { struct arch_domain *d; - for (d = doms; d->perval >= 0; d++) { + for (d = doms; d && d->perval >= 0; d++) { if (!strcmp(pers, d->target_arch)) break; } |