return 0;
}
for (i = 0; i < nsyscalls0; i++)
- if (strcmp(s, sysent0[i].sys_name) == 0) {
+ if (sysent0[i].sys_name &&
+ strcmp(s, sysent0[i].sys_name) == 0) {
qualify_one(i, bitflag, not, 0);
rc = 0;
}
#if SUPPORTED_PERSONALITIES >= 2
for (i = 0; i < nsyscalls1; i++)
- if (strcmp(s, sysent1[i].sys_name) == 0) {
+ if (sysent1[i].sys_name &&
+ strcmp(s, sysent1[i].sys_name) == 0) {
qualify_one(i, bitflag, not, 1);
rc = 0;
}
#if SUPPORTED_PERSONALITIES >= 3
for (i = 0; i < nsyscalls2; i++)
- if (strcmp(s, sysent2[i].sys_name) == 0) {
+ if (sysent2[i].sys_name &&
+ strcmp(s, sysent2[i].sys_name) == 0) {
qualify_one(i, bitflag, not, 2);
rc = 0;
}