]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - sys-utils/setarch.c
scriptreplay: cleanup usage()
[thirdparty/util-linux.git] / sys-utils / setarch.c
index f84e90b5bf5c172aca2c55de5fad7e26d7836c46..1a2ae1b68ccce9645643f24632c5174911ab6841 100644 (file)
@@ -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;
        }